Changed domain prefix to 'www'

Posted in: Newspaper
Post count: 37

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?

Post count: 7909

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!

Post count: 37

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 🙂

Post count: 8

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!

Post count: 6535

Hi

Thanks for your replay and for sharing the script here so other users can benefit from it.
Have a nice day.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.