PHP webdeveloper and frontend developer




Change domain of a wordpress website

Category : PHP, Wordpress · by Nov 1st, 2012

What I find a major hassle when dealing with wordpress websites is to transfer the website from a development environment to a production environment. The domain you use in a development stage will be different from the one of the production website. Therefore you have to alter all the urls within the posts, the links of the posts and the site_url.

I just use a sql to find and replace all these urls:

 The “http://localhost/wordpress” is the url I want to replace in the database to the production url “http://yourdomain.com”

SHARE :

Leave a Reply

Your email address will not be published. Required fields are marked *


s