Mobile app version of vmapp.org
Login or Join
Hamaas447

: 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

@Hamaas447

Posted in: #Apache #Htaccess #Iis #IsapiRewrite #Redirects

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sims2060225

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme