The Web Dev Zone is brought to you by Stormpath—offering a pre-built Identity API for developers. Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management.
When you install Wordpress it saves the current address in the db keeps using it. If you install it on production and start using Wordpress then you'll be fine. How I use wordpress is I first install it on my machine, setup plugins, themes etc. When the site looks alright I move it live server.
I also make sure that the db name, user and password are the same on development and production server. Here is what I use to make the installation work i.e. Wordpress ignors the site url saved in the db.
Add these lines in config.php to make the installation work on dev and on production
define('WP_HOME','http://' . $_SERVER['HTTP_HOST']);
define('WP_SITEURL','http://' . $_SERVER['HTTP_HOST']);
The Web Dev Zone is brought to you by Stormpath—offering a pre-built, streamlined User Management API for building web and mobile applications. Check out our top pointers for designing your REST API.
Published at DZone with permission of
, DZone MVB
Opinions expressed by DZone contributors are their own.