Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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. –  bybe 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. –  bybe Aug 19 '13 at 19:53
    
Ah I see what your misunderstood my bad - I meant I don't use IIS –  bybe Aug 20 '13 at 0:55
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.