November Happy Hour will be moved to Thursday December 5th.

Redirect default.aspx and non-www pages with 301

Vote:
 

Hi:

I need to redirect some pages with 301. I am mostly interested in the following cases being redirected to www.example.com:

www.example.com/default.aspx

example.com

example.com/default.aspx

 

I have google about the subject a bit and not sure which is the easiest and/or optimal way to achieve this (in ASP .NET, IIS, ISAPI filters. etc?)

 

Thanks in advance for the help.

Cheers

 

 

#50318
Apr 27, 2011 11:28
Vote:
 

I would use the IIS Rewrite Module. Then you can config the redirects in IIS manager or directly in web.config. Read more here: http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

 

#50319
Apr 27, 2011 12:06
Vote:
 

Thanks for the info Erik, gonna start working on it, cheers.

#50320
Apr 27, 2011 13:11
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.