London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Redirect default.aspx and non-www pages with 301

Vote:
0

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:
0

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:
0

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.