• Changed my url to https in wordpress admin from http and now I get a server error. I have an SSL cert on the server and now I cant get in because:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    I have access to the server files. Im in there now but I can’t find where to change this back to http so I can have access again to my admin. Can anyone please help. Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rgolden71

    (@rgolden71)

    Changed it in the DB and still I get the error

    Thread Starter rgolden71

    (@rgolden71)

    Tried this and still same error.

    Edit wp-config.php
    It is possible to set the site URL manually in the wp-config.php file.

    Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);
    This is not necessarily the best fix, it’s just hardcoding the values into the site itself. You won’t be able to edit them on the General settings page anymore when using this method.

    Edit functions.php
    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial “<?php” line.

    update_option( ‘siteurl’, ‘https://example.com&#8217; );
    update_option( ‘home’, ‘https://example.com&#8217; );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changed my url to https in wordpress admin and now I get a server error.’ is closed to new replies.