Hi, I’ve changed the domain prefix within WordPress in order to access my site with the prefix ‘www’. The reason behind the change is to create a cookieless sub-domain, as part of an attempt to improve pagespeed.
I’ve had to add the following line to wp-config.php and this has broken the links for the visual composer:
define(“WP_CONTENT_URL”, “http://static.[domain].com”); define(“COOKIE_DOMAIN”, “www.[domain].com”); define(“WP_PLUGIN_URL”, “http://www.[domain].com/wp-content/plugins”);
I could revert it all back by deleting this code from wp-config.php – however I would rather make it work. Is there an obvious location where the original filepath will have been written into Newspaper code when I installed it?
Hi,
I’m not sure how you have implemented the code in your case and I’m really sure about the broken links you say. I guess that WP_CONTENT_URL could cause this, but you should get some specific errors in the console. Unfortunately I cannot provide you a solution for this, but if you want you can send an email at contact@tagdiv.com and provide wp-admin access and we will take a closer look where the issue is and try to provide you some suggestions. Also paste a link to this topic.
Thanks!
Hi, thanks for getting back to me. There were so many problems I decided to start from scratch with a clean install of WordPress using the ‘www’ protocol. So far it looks good 🙂
FWIW
The next time you can use this great script, with it, I have changed not only the url but a different domain to move an entire site to other domain, URL, directory, root directory, etc., and worked flawless, obviously you need to move uploads, themes, plugins, etc. along with it.
You can find the script here:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Hope this helps someone that needs to move, change, modify an existing blog to other domain, URL, or similar.
Good Luck and have a nice one!