Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an .htaccess file with over 200 redirection rules. It seems some of them are conflicting each other.

Is there any way to find out which one is responsible of redirect on a particular request?

Please note, I'm using ISAPI_Rewrite from HeliconTech (similar syntax to Apache mod_rewrite) over IIS 6.

share|improve this question
Don't use IIS6 but you should have some kind of logging and you should be able to find your problems in there if any exist. – Simon Hayter Aug 19 '13 at 19:14
Its a stable application....and I want change the environment; not even upgrade the IIS version :( – Sachin Dhir Aug 19 '13 at 19:28
Not what I said, you must have some kind of logging. – Simon Hayter Aug 19 '13 at 19:53
Ah I see what your misunderstood my bad - I meant I don't use IIS – Simon Hayter Aug 20 '13 at 0:55
up vote 4 down vote accepted

Use RewriteLog and RewriteLogLevel directives to log such activity (IIS restart most likely will be required).

The higher value you put for RewriteLogLevel the more verbose/detailed it will be.

If your site is busy (has lots of requests) then you will have hard times debugging it (log will become huge in a matter of seconds/minutes and it will become quite hard to see what is going on there (where one request ends and another starts etc)) .. so try it on your dev machine or when not busy if possible.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.