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