How to set Parallels Plesk's SEO redirect feature to be disabled (Preferred domain value to "None") by default for new domains.
Currently, this option is not available. Feature request PPP-5274 has been created.
As a workaround, an Event Handler can be created to set "Preferred domain" to "None" (SEO Redirect disabled), triggered by creating a domain with hosting.
Create an Event Handler triggered by physical hosting creation. Go to Tools & Settings > Event Manager > Add New Event Handler:
Event: Physical hosting created Priority: lowest (0) User: Plesk Administrator Command: c:\seo.bat <new_domain_name>
C:\seo.batfile using Notepad and save following line in it:
"%plesk_cli%\subscription.exe" -u %1 -seo-redirect none
Create an Event Handler triggered when hosting settings are created. Go to Tools & Settings > Event Manager > Add New Event Handler:
Event: Hosting settings created Priority: lowest (0) User: root Command: /usr/local/psa/bin/subscription -u <new_domain_name> -seo-redirect none
To disable SEO redirection for domains that already exist, use this article: 121097>