301 redirect from subdomain to domain using Plesk

1.1k views Asked by At

I had a subdomain m.example.com for mobile users, but recently I have redesigned my website to responsive one. so I don't need this subdomain. But Google has indexed many pages of this subdomain over the years and I don't wanna lose all that traffic. All I want to 301 redirect mobile traffic to main website. e.g.

m.example.com to example.com

m.example.com/unique-link to example.com/unique-link

I have Windows Server 2012 R2 with Plesk 12 running on it. So far I have tried to learn from Plesk tutorials online but none of them worked for me, and I don't wanna use server redirect from my asp.net website.

Please refer me a guide or solution.

Thanks and Regards

1

There are 1 answers

2
Oleg Neumyvakin On

It's better to create domain alias m.example.com for domain example.com.

You just need to rename existed sub-domain m.example.com to avoid name clash.

Plesk domain alias 301 HTTP redirect