kala-tamin IIS 6 www redirect to non www

IIS 6 www redirect to non www

We have a Dot net nuke site setup to run on a domain, we would like all http://www.site.com to redirect to just http://site.com.

I can find lots of info for IIS 7 but very little and certainly nothing that has worked for IIS 6.

aspnet_client folder within IIS website


Not able to find asp.net 3.0 in IIS
add a 301 permanently moved to your .htaccess file.
Virtual Directory App within a Asp.net MVC app
see http://www.isitebuild.com/301-redirect.htm for a walkthrough.
Can IIS6 be at fault?
you can also check how some other websites do it: see http://www.blackberryseo.com/seo/header-response-tool1.php and enter "http://www.twitter.com" in the check.

VBS Expected End of Statement
They return a "301 Moved" response for that URL.

Right click->Browse ASP.NEt site in IIS6 don't work
iis 6 custom error not working in ie

How to limit SMTP delivery to hourly batches


You can't use a htaccess file with an asp.net website.. Have you investigated using a full Url solution for your site? While you will solve the very simple problems (non www to www), you still have a lot of SEO problems with a DNN site.. Take a look at the Friendly Url Provider that I distribute from my site : DNN Friendly Url Provider.


Sort of an old question but in DNN 5 there is another solution if you dont want to muck with DNS and such that i use . its actually a url rewiter hack from Oliver Hine - here is a link to the download http://oliverhine.com/DotNetNuke/CoreModifications/PrimaryPortalAliases.aspx - basically it does a redirect to the first portal alias for that portal so you might have to muck in the db a bit .


I just added an answer at http://stackoverflow.com/a/20551799/393089 that addresses how to do this in IIS6.

To adapt it to your needs (www to non-www), just make sure your initial site is configured with the non-www domain (i.e.

example.com) as the Host Header, then configure the new site with the www domain (i.e.

www.example.com) as the Host Header and in the "Redirect to" field, enter your non-www URL with the $S$Q suffix, i.e.

http://example.com$S$Q ..

69 out of 100 based on 34 user ratings 59 reviews