• 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.

non WWW domain set up.

B

BankHoliday

Guest
Hi,
How do you set up different sites for www and non www versions of a domain?

I have a single code base that I want all the domains registered to my server to use (content then varies depending on the domain accessing the code).
On Plesk 9 I could create a main home domain put my code there and alias all the www versions of the domains to that home domain.

Then I could create separate www less versions of my domains in the Plesk domain list.
This was possible because plesk 9 let you select www or not via a tick box.
Then in the vhosts directory plesk creates for these www less domains I could do a mod rewrite to redirect the domain to its www version.

E.G.

HOMEDOMAIN contains my code that reacts differently depending on the domain.
www.domain1.co.uk is aliased to HOMEDOMAIN
domain1.co.uk is redirected to www.domain1.co.uk via an SEO friendly redirect.
I'm doing this for SEO reasons, i.e. I'm worried about thw www and non www versions being seen as duplicate content.

On plesk 10 you don't seem to get the choice of using www or not, it seems to just treat both the same.
Can anyone offer any advice on how to emulate what was possible in Plesk 9?

Thanks in advance.

B




and in the directories created for them in vhosts add a mod rewrite to redirect them to the www versions.
 
If you need this only for SEO reasons, the easiest way is to use SEO frendly redirect with .htaccess (to point non-www domain to www with htaccess rewrite).

However, if you for some reason need to make seperate subscriptions with www and non-www, you can always create first the non-www version and then go to DSN settings and delete the www CNAME record - and after that create a domain with www. on the beginning of the domain name (making it www. subdomain).
 
Thanks Scy,

I wasn't thinking straight. Of course I can put the redirects in the HOMEDOMAIN.
I was stuck on thinking that I needed a separate domain to put my mod rewrites in but I can just use a generic mod rewrite to redirect all non-www to ww in the HOMEDOMAIN (as I called it in my post).

Thanks.
 
Back
Top