Wordpress Toolkit - URL switch (main URL <=> preview URL)
Hello,
I would like to suggest something which could be VERY helpfull to customers which are moving their Wordpress instances between servers. Lets say you have domain.com on Server1. Then you are moving it to Server2 with Plesk and Wordpress Toolkit but domain.com is still pointing to Server1. Issue with Wordpress is that if you don't use main URL then all media files (css, images etc) are not being loaded correctly and customer can't be sure if everything will work correctly when he switch DNS settings for domain.com from Server1 to Server2.
My suggestion is that it would be great if there could be some kind of Preview switch (On/Off) called "Set preview URL as Wordpress main URL" (or something like that) where Wordpress toolkit will change Wordpress main URL in configuration table to one which is being used by preview link in Plesk.
This could solve all preview issues with Wordpress where some of wordpress instances are redirecting to main URL on site opening (so currently it would redirect user from Server2 preview URL to Server1 main URL).
What do you think about it? This is simple task which must change two URLs in Wordpress configuration table.
I'm aware that some URLs are hardcoded into templates, posts, pages etc. but generally speaking setting main URL in configuration table could solve all preview issues.
Thanks
![](https://secure.gravatar.com/avatar/77b20b917c74decd2d8bf50ba0b93254?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
Keith commented
I second that request.