Hi,
When we are developing a wordpress site (using Enfold theme) we usually runs it in a staging url with no ssl/https and in a subdomain. We do our stuff there and then we deploy it on the live url in ssl / https. We have been doing this process with other themes with no issues. Until recently we decided to migrate our sites to Enfold. We have migrated 4 sites in Enfold already but we keep on having issues with our url. I noticed two major issues:
1. Changing url from staging to live. We are using “search and replace” plugin another one to make sure that we will replace all the staging urls. But all urls in pages or posts that were using the advance editor of Enfold can’t be replaced and still using the staging url so we are doing it manually.
2. Chaning http to https. Same as above except that it’s not the domain name that we are replacing but it’s the protocol.
Is there a way, a plugin or a script that we can use to fix the said problems/issues above? I searched about it and I understand that the reason is because Enfold is saving the data in serialized form. I also read about the WP Migrate DB plugin that will fix the issue but the said plugin adds additional process to us, and I’m looking for something that doesn’t require a migration process or doesn’t add additional risky steps to our process.
Thank you!
Hey Simplify,
You can add this line to wp-config.php:
define('WP_CONTENT_URL', '/wp-content');
So media references won’t include the full http/https path.
Best regards,
Josue
Hey Josue,
Thanks for the help! It will cut down my problem. It will solve the media links that we have but how about the page or post links inside a page content?
Hi,
Links set manually would need to be changed manually, if you’re using dynamic linking though it should change automatically.
Best regards,
Josue