Tuesday, June 7, 2011

How to Reset Wordpress URL

If you have changed you URL and you can't access any more your site:

1) Edit wp-login.php
Just after the line "require( dirname(__FILE__) . '/wp-load.php' );"
Insert:
//FIXME: do comment/remove these hack lines. (once the database is updated)
  update_option('siteurl', 'YourFirstURL' );
  update_option('home', 'YourFirstURL' );
  

2) Edit index.php to Default

Now you can open on a Browser your First Wordpress URL.

After you need to Remove the lines inserted in wp-login.php

Got it from here:Codex

3 comments:

  1. I have tried this and it doesn't seem to work. Please help me!

    ReplyDelete
  2. Hi,

    Try to Check this:
    http://codex.wordpress.org/Changing_The_Site_URL
    God Luck!

    ReplyDelete
  3. where is wp-login.php? I don't know what it is or where to find it...

    ReplyDelete