Denis Gomes Franco
Regular Pleskian
I know this is *not* an issue with Toolkit itself, and I'll also post a workaround on my own question so that others with the same issue can see the solution, but I think I'll post this here like a feedback of sorts. So here's the situation I sometimes face when working on website redesign projects:
- Customer has their domain pointed to his old DNS and hosting server
- They want to see the new site being developed, without the old one taken down/without pointing the domain right now
- I add the customer's domain to Plesk, just to create the hosting space and put the new files in there
- Plesk has a 'preview' feature, which I have configured under my own domain, so I can view the new website using 'customerdomain.com-server.ip.here-mydomain.com'
- This works like a charm for static websites but not for Wordpress, because Plesk installs Wordpress and sets the site URL to be that of the domain's
- So when I open customerdomain.com-server.ip.here-mydomain.com Wordpress redirects to the URL, which is still pointing to the old server
My workaround for this is to open the database and change 'siteurl' and 'home' under 'wp_options' to 'http://customerdomain.com-server.ip.here-mydomain.com', then refresh the site on Toolkit. Now the site opens just fine, except for the SSL warnings.
So here is my feedback on how this issue could be addressed:
- Allow Toolkit to install Wordpress to the preview URL instead of the domain URL
- Make the Update Site URL function in Toolkit work with the preview URL as well
- Create a Update URL function (i normally use the Better Search & Replace plugin for this purpose when I need to migrate something) which allows manually typing the domain
I'm aware I could simply point the domain over here anyway and then add the entries pointing to the old server, so that way I can create a 'staging' subdomain, but I just find this way of doing things is just faster and easier in the beginning. When the new site is ready, I simply do a search & replace in the database to update to the new URL and then point the domain, and that's it.
- Customer has their domain pointed to his old DNS and hosting server
- They want to see the new site being developed, without the old one taken down/without pointing the domain right now
- I add the customer's domain to Plesk, just to create the hosting space and put the new files in there
- Plesk has a 'preview' feature, which I have configured under my own domain, so I can view the new website using 'customerdomain.com-server.ip.here-mydomain.com'
- This works like a charm for static websites but not for Wordpress, because Plesk installs Wordpress and sets the site URL to be that of the domain's
- So when I open customerdomain.com-server.ip.here-mydomain.com Wordpress redirects to the URL, which is still pointing to the old server
My workaround for this is to open the database and change 'siteurl' and 'home' under 'wp_options' to 'http://customerdomain.com-server.ip.here-mydomain.com', then refresh the site on Toolkit. Now the site opens just fine, except for the SSL warnings.
So here is my feedback on how this issue could be addressed:
- Allow Toolkit to install Wordpress to the preview URL instead of the domain URL
- Make the Update Site URL function in Toolkit work with the preview URL as well
- Create a Update URL function (i normally use the Better Search & Replace plugin for this purpose when I need to migrate something) which allows manually typing the domain
I'm aware I could simply point the domain over here anyway and then add the entries pointing to the old server, so that way I can create a 'staging' subdomain, but I just find this way of doing things is just faster and easier in the beginning. When the new site is ready, I simply do a search & replace in the database to update to the new URL and then point the domain, and that's it.