Mobile app version of vmapp.org
Login or Join
Murphy175

: IIS 7.0 HTTP Redirect not rolling back This is a very strange situation. We have a number of sites hosted on a IIS 7 webserver. We put in a redirect for one subdomain to go to another site.

@Murphy175

Posted in: #Iis7 #Redirects

This is a very strange situation. We have a number of sites hosted on a IIS 7 webserver. We put in a redirect for one subdomain to go to another site.

Because we only have one web.config file, it was trying to apply that change to all sites. Since this is not what was intended we rolled back the change by clearing out the redirect from the form and unchecking the box.

We reset the website
We reset IIS

The page is still redirecting. Does anyone know if there is anything else needed to be done to make this change. Is a reboot required?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Murphy175

3 Comments

Sorted by latest first Latest Oldest Best

 

@Murphy175

I officially accepted an answer because it provided the information that solved the issue. I wanted to post the official answer on what happened in case someone else has this experience:

When we did an IIS redirect it added an entry to the web.config file for the application. Un-selecting and clearing out this redirect never cleared out the web.config file. Even rebooting the server (obviously) doesn't clear it out.

So if you set up a re-direct and need it removed, you have to check to see if IIS added a redirect rule to your various configuration files, either web.config or machine.config

10% popularity Vote Up Vote Down


 

@Mendez628

Check that the redirect hasn't been registered in the "Machine.config" file.

IIS as we all know, puts entries in the local web.config for the application in question, however occasionally it put's entries in the machine wide "machine.config"

Furthermore many .NET devs don't even realize there is a "machine.config" file

As the name implies, any settings in here apply to EVERY site and server configuration on the IIS Install in question.

You can find more about the IIS Config system here:
www.iis.net/learn/get-started/planning-your-iis-architecture/the-configuration-system-in-iis-7
and this Stack Overflow post will help you locate your "machine.config" file on the server your trouble shooting:
stackoverflow.com/questions/2325473/where-is-machine-config

10% popularity Vote Up Vote Down


 

@Vandalay111

Some redirects are cached by the browser (permanent redirect). You may need to clear the browser cache on the client side.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme