views:

402

answers:

4

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.

A: 

This is a job for your DNS (via a CNAME record).

Will
+1  A: 

add a 301 permanently moved to your .htaccess file

see http://www.isitebuild.com/301-redirect.htm for a walkthrough

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. They return a "301 Moved" response for that URL.

Joshua
although this didn't directly solve my problem it did lead me to the a solution. I downloaded the lite version of the ISAPI rewrite tool at http://www.helicontech.com/download-isapi_rewrite3.htm and used standard htaccess rules to create the same effect.
savageguy
A: 

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

Bruce Chapman
A: 

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

codemypantsoff