1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Subdomain Redirects

Subdomain Redirects

2 posts, 0 answered
  1. Glavin
    Glavin avatar
    8 posts
    Registered:
    07 Nov 2008
    05 Dec 2012
    Link to this post
    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.
  2. Arno
    Arno avatar
    249 posts
    Registered:
    08 Sep 2010
    09 Dec 2012
    Link to this post
    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 (http://www.helicontech.com/ape/).

    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]
2 posts, 0 answered