: Is there any way to debug redirection rules in.htaccess? 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
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.
More posts by @Hamaas447
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.