• Resolved anagalicia

    (@anagalicia)


    Hii,

    I got an SSL Certificate for my website about a month ago, but I’m having some problems to get the url with the HTTPS instead of the HTTP, so today we tried by changing the site’s URL by adding the HTTPS instead of the HTTP, and it appeared to be working without a problem, but right now when I try to get into my website I get this error: Error establishing a database connection and if I try to access to my dashboard I get the same problem.

    I tried to add this:
    define(‘WP_HOME’,’http://www.riskmexico.com’);
    define(‘WP_SITEURL’,’http://www.riskmexico.com’);

    to my wp-config file and add this to the functions:

    update_option(‘siteurl’,’http://www.riskmexico.com’);
    update_option(‘home’,’http://www.riskmexico.com’);

    but nothing happened. I also tried with the relocate method but it didn’t work. What else can I do? Please HELP!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try adding:

    define( ‘FORCE_SSL_ADMIN’, true );

    to your wp-config.php file.

    Thread Starter anagalicia

    (@anagalicia)

    It’s not working 🙁

    Remove the additions that you made to your wp-config file – but don’t remove
    define(‘FORCE_SSL_ADMIN’, true)

    Thread Starter anagalicia

    (@anagalicia)

    I tried that, and now it takes a long time to refresh and when it finally loads I get this:

    500: Internal server error
    This error is generated when a script running on the server could not be implemented or permissions are incorrectly assigned for files or directories
    Troubleshooting suggestions:
    Temporarily disable any rewrite rules by renaming your .htaccess file if it exists.
    Ensure that any CGI or Perl scripts have at least .755. permissions.
    If trying to run PHP and you get this error, you may have an invalid php.ini in your /cgi-bin, or may be missing your php.dat file in this folder.

    I tried to rename the .htaccess file to see if that was the issue but nothing happened and I don’t understand what the other two options mean..

    Ok, lets take a few steps back. Restore wp-config.php by removing the text you added and the remove the text I gave you.

    That should then return everything to the state it was in after you changed the url to include https in the wordpress settings.

    What message do you get?

    Thread Starter anagalicia

    (@anagalicia)

    It’s working now!! Thank you so much! haha you saved me 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Site URL / Database error’ is closed to new replies.