Migrating wordpress installation to another domain
-
Hi,
I have an apache with virtual hosts and a wordpress installation with the domain https://www.foobar.com. Now I want to have a copy or duplication of this wordpress installation in another virtual host with the domain dev.foobar.com.
I created a nameserver entry for dev.foobar.com and the according apache configuration and copied all the contents of the document root of https://www.foobar.com to the document root of dev.foobar.com. I also made a copy of the database named ‘wordpress’ and called it ‘wordpress-dev’. I changed the database in wp-config.php to ‘wordpress-dev’ and changed every single occurrence of https://www.foobar.com in the new database to dev.foobar.com (especially the ‘siteurl’ in the ‘options’ table).
So far so good. When I now surf to dev.foobar.com I get exactly the same content as on https://www.foobar.com. That’s fine. But one thing is driving me nuts: All the links on the website are pointing to a URL with https://www.foobar.com and _not_ with dev.foobar.com!? How the f*** is this possible? I mean, when I point my browser to dev.foobar.com there are PHP files which fetch data from the database, do some magic with it, and present it as HTML pages to the client, right? And if there is no single occurence of the string ‘www.foobar.com’ in the database, where the hell is this string coming from when I see it in the HTML page!!?
Argh, please, someone help me before I have to take myself to the madhouse…
- The topic ‘Migrating wordpress installation to another domain’ is closed to new replies.