• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

WP Toolkit adds redirect with www. in front of subdomain on cloned instance

AKTM

New Pleskian
Hi,
I meant to set up a staging instance for a site.
The domain is set up as example.com in plesk. However, when viewing the WordPress instance in the WP toolkit its title is www.example.com.

Now if I go to clone that instance to staging.example.com I do get a new subdomain within the websites-panel as staging.example.com. However, upon visiting staging.example.com the server redirects to www.staging.example.com which is not set up in the DNS, nor should it have to be.

I have removed the www. part from the site url within the WordPress database and within the WP-toolkit's sqlite database but can't seem to get rid of the redirect.

I would also be interested in why this happens in the first place.

Thanks!
 
Besides the URL stored in the Wordpress database in "home" and "siteurl" of the wp_options table, it can also be a redirect in the "hosting settings" of the domain where some users define, that the URL shall always be redirected to the www spelling type.
 
I had already tried that and it didn't work yesterday. I had also made sure to disable browser caching as to not follow stale redirects.
However, I tried it again today and it is now working properly without any additional changes. The redirect might have been cached at some other point in the network or maybe the server config was updated with a certain delay.
Either way, It's working now so I'll mark this as resolved.
Thanks!
 
We are actually constantly battling the handling of www on wordpress sites. The majority of the clients we deal with have their URL set as www.domain.com. If we attempt to duplicate these to staging we end up with www.staging.domain.com, when the desired behavior in this case would be staging.domain.com. Now I understand that this is to make it easier to re-launch that staging site programmatically, but I wish there was a way I could specify the URLs when duplicating to staging and launching a staging site... like an override or something. In some hosting environments we can use wp-cli to manually fix these things, but in others we are not given that access. In restrictive environments we could try to simply replace everything in the database but this doesn't catch things at the account level. Just another annoying thing that we have lost hours trying to navigate through.
 
We are actually constantly battling the handling of www on wordpress sites. The majority of the clients we deal with have their URL set as www.domain.com. If we attempt to duplicate these to staging we end up with www.staging.domain.com, when the desired behavior in this case would be staging.domain.com. Now I understand that this is to make it easier to re-launch that staging site programmatically, but I wish there was a way I could specify the URLs when duplicating to staging and launching a staging site... like an override or something. In some hosting environments we can use wp-cli to manually fix these things, but in others we are not given that access. In restrictive environments we could try to simply replace everything in the database but this doesn't catch things at the account level. Just another annoying thing that we have lost hours trying to navigate through.
Have you seen my above post that explains how Wordpress works with URLs?
 
Back
Top