• Hello,

    I have a slight problem with my wordpress. I accidentaly changed my WordPress URL in Admin Panel. I wanted to change website URL but made a mistake.

    This caused 500 internal error. I cannot access my wordpress. When I modify htaccess file, there is a possibility to see particular pages but I am unable to login to admin panel to revert changes because login page causes redirect loop (or something like this, I have Polish browser, so this is translated).
    Is there a way to fix this without modifing the database itself via PhpMyAdmin (or something similar). I don’t have access to MySQL unfortunately.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    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 (like notepad) and upload it back to the site.

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

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

    Use your own URL instead of example.com, obviously.

    It will be back to your old url

    Thread Starter zychoo

    (@zychoo)

    It works. Thanks a lot mate.

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

The topic ‘Broken WordPress URL’ is closed to new replies.