• Resolved rgolden71

    (@rgolden71)


    This is repost..was in wrong category.

    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!!

    Tried this and still same error. I have also changed it directly in the db…still no.

    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 1 replies (of 1 total)
  • Thread Starter rgolden71

    (@rgolden71)

    Figured it out myself. Even the jackass that closed my thread didnt know it. I deleted htaccess to let me in.

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