A staging site is an exact copy of your live site, except for one crucial detail: the URL. When you’re working on a staging site, it is important to keep in mind that if you copy your changes from your staging site to your live site, you need to account for the change in URL. I’m going to show you how to make sure that all of the links on your site will work, even if your site URL changes. This information is useful when you are working on a staging site, but you should actually follow these best practices on every WordPress site, so that all of your sites will still work even if you change domain names. Database vs. Files Before digging into the nitty-gritty of writing URLs in WordPress, it is important to understand where your content is stored. There are two possible places where you content could be stored: the database, and files. Database: Any information that you enter into your WordPress dashboard gets saved in the database (with one exception, which I will discuss later). Posts, pages, plugin settings, theme settings, and any other information you save in the WordPress dashboard will be stored in the database. Files: Other information is stored in files on your
Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.