Changing the URL of a wordpress site

I have a wordpress site at http://myname.myprovider.info and I just bought the domain http://www.myname.com

Ive tried to change the URL in the backend at “Setting > General” both fields WordPress Address (URL) and Site Address (URL) with http://www.myname.com. The moment i click save, Im automatically logged out of the backend. If i try to log back in, I get a white screen.

Read More

The only way to log back in is to add in the config file the following line:

define('RELOCATE',true);

If then I go back to “Settting > General” I see that WordPress Address (URL) still has the http://myname.myprovider.com and everytime I try to change it again, the loop starts again…

What can I do?

Related posts

Leave a Reply

4 comments

  1. you cant just change the url in wordpress … you would need to move all the files to your new host

    you can facilitate this in wp-admin

    under tools select export and follow the dirrections

    then setup wordpress on your new host

    and goto wp-admin and select tools import and select the earlier exported file

  2. I had a very similar problem some time back and I’m trying to remember what the source of the problem was. Until I do, here are some ideas you may or may not have tried:

    (obviously backup everything first!)

    • Check your code (theme, scripts, functions.php, etc.) for any instances of the old URL. Sure, we all know better than hard-coding the URL but…
    • Do a search through your WordPress database for the old URL. Carefully (very carefully!) replace it with the new one. In my experience some plugins aren’t well behaved when it comes to storing the web site URL in the database.
    • Try disabling all plugins to see if one of them is causing a problem.
    • I assume you’ve set the DNS by hand, rather than your domain registrar putting in place some kind of forwarding?