Redirecting Non-www to Domain Equivalent

Posted by: Scott Forsyths WebLog, on 05 Jan 2012 | View original | Bookmarked: 0 time(s)

A question came up on a blog post of mine on how to redirect a domain name that doesnt have www in it while retaining the original domain name.  Basically, to have a generic redirect to add on a www if its not already there. For example, how could you have something.com always redirect to www.something.com where something could be any of a number of domain names that you manage. This is fully possible with URL Rewrite.  Heres what the config looks like.  If you want a full walkthrough...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD