301 redirect

Topics: Installing Orchard
Jul 6, 2011 at 12:21 PM

I know there are about a dozen ways to do this, but I am curious if there is a "best" or "recommended" way to do this in Orchard?

When installing a new Orchard site for the domain "mydomain.com", lets assume that it should be reachable as either http://www.mydomain.com or http://mydomain.com but that if the request comes in as mydomain.com the user should get a 301 redirect to www.mydomain.com. The reason for this is for search engines (see Google webmaster tools documentation). This should work for all pages on the site, not just the homepage.

Jul 6, 2011 at 12:59 PM

There has been an open issue for this for some time, but I don't know whether there has been any progress. You can vote for it here: