GUID and absolute links
-
We have a staging and a production environment for our site. Recently we added SSL to both environments. Part of my task was to go through and find all absolute links in content and make them relative. Aside from using Better Search and Replace plugin to fix absolute URLs in posts and postmeta I also double-checked the MySQL database. While I was searching I discovered that there are many other assets that use absolute links – such as – GUID. I did an UPDATE and replace in phpMyAdmin of GUIDs in staging (to be staging URL) and in production (to be production URL) without any problems.
Recently I needed to do a clone of production to staging so work can be done. I checked the staging MySQL database and now the staging GUID URLs are the same as production.
My question is, should I leave the GUID URLs of staging the same as production or should I go in and change them back to staging? I’m assuming if I change staging GUIDs to staging URL and do my deployment to production – then production GUID URLs become staging URLs. Could I just use the production URL for the staging GUID URLs and call it a day?
- The topic ‘GUID and absolute links’ is closed to new replies.