We help IT Professionals succeed at work.
Get Started

IIS6 and ASP.net 4 and 301 redirect

Last Modified: 2012-05-12
Don't you hate it when you do everything that a forum says to do and it still does not work?  My latest problem is this:  I have a website that I optimizing.  One of the things I need to do is to a 301 permanent redirect from the non-www url to the www url.  So http://mydomain.com redirects to http://www.mydomain.com.  The site is hosted in a shared environment running IIS6.  The site is an asp.net 4 site.  I set up a new website to handle the non-www url and create a permanent redirect to the www. site.  The problem is that when I type in http://mydomain.com, the redirect appends with “/eurl.axd/GUID”   I have followed the suggestions of many forums to resolve the issue and yet nothing works.  Some suggest making sure the site use different application pools, some suggest using the same.  Some suggest using asp.4 for one and asp.net2 for the other, while some suggest using the same version for both.  I also tried to add DWORD EnableExtensionlessUrls to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\4.0.30319.0\ and still did not work.  Does anyone know how to solve this problem?

Watch Question
This problem has been solved!
Unlock 3 Answers and 8 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE