Subdomain Redirects

Posted by Community Admin on 04-Aug-2018 15:46

Subdomain Redirects

All Replies

Posted by Community Admin on 05-Dec-2012 00:00
I am trying to do research for a client if the following is possible and thus far turning up empty.

If I have a site (say www.mysite.com) that has several blogs set up in it (www.mysite.com/blogs/blog1, www.mysite.com/blogs/blog2) how would I go about getting any traffic to blog1.mysite.com to automatically redirect to www.mysite.com/blogs/blog1 or treat that domain as separate site?

I know there are ways to set up redirect sites in IIS to catch blog1.mysite.com and redirect to the main sitefinity site, but that will take more IIS configuration work on the clients part.
Posted by Community Admin on 09-Dec-2012 00:00
Hi Michael,

If all subdomains of the website are blogs then you would need just one rule in IIS, or in any other product to manage redirects, such as Helicon Ape (www.helicontech.com/.../).

Something like this would be required in .htaccess for Helicon Ape I think, but you would have to test it:
RewriteCond %HTTP_HOST ^(.*)\.mysite\.com$ [NC]
RewriteRule .? http\://www.mysite.com/$1 [R=301,L]
This thread is closed