• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Default to WWW on service plans

Denis Gomes Franco

Regular Pleskian
Hi,

I like to run all my websites (I'm an agency hosting customers' sites) with the WWW prefix. I noticed you can set this as default for a domain (eg. Plesk will redirect from non-WWW to WWW) but seems like this cannot be set as default on a service plan.

So if I change this option on a subscription, Plesk will lock that subscription, preventing me from applying changes to all subscriptions using that plan later on.

Is there any way around this?
 
Another thing is, because of the above, Plesk will only install Wordpress on the domain without WWW. While installing Wordpress from within Plesk, I cannot change the domain to include WWW, unless I set WWW as default for that domain (and thus lock the subscription from changing).

After installing Wordpress I can change it to use WWW, but I would like to know if this could be done on Plesk right away, instead of later on.

Yeah, call me a stickler to details ;)
 
So if I change this option on a subscription, Plesk will lock that subscription, preventing me from applying changes to all subscriptions using that plan later on.
This is not the case. You can freely apply this change in a subscription, yet the subscription is not locked for service plan changes, because that setting is not part of the service plan preset.
 
You could try running a CLI command on a Plesk event, like 'physical hosting created' to set the preference how you want it.

plesk bin site -u example.com -www true

site: Sites
 
This is not the case. You can freely apply this change in a subscription, yet the subscription is not locked for service plan changes, because that setting is not part of the service plan preset.

I beg to differ: Screenshot

But I noticed something else: by unlocking the subscription it will retain the WWW option. So why is the subscription locking in the first place?
 
Nice! Didn't know (yet) about these commands. Can I run these on all domains/subscriptions at once?

To run on all sites, you would need to write a script. Use CLI to get all domains and then loop over them.

For the Plesk event, the domain is available to the command as something like {NEW_DOMAIN_NAME}. Check the docs, as I've probably got that wrong.
 
Back
Top