Logging a specific rewrite condition

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 4
Joined: 15 Jul 2014, 11:10

Logging a specific rewrite condition

15 Jul 2014, 11:19

Is there a way to write to a log, whenever a specific rewrite condition is encountered?

For example, if this RewriteCond is encountered:

RewriteCond %{HTTP_HOST} ^(?:www\.)?support.abc\.com$ [NC]
RewriteRule ^(.*)$ http://abc.com/ [R=301,L]

I'd like to write a comment to a log file. Is this possible??

Thanks in advanced!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Logging a specific rewrite condition

15 Jul 2014, 23:12

Hello,

The logging functionality is designed specifically for debugging and can be used for logging everything at once.
Unfortunately, there's no way to narrow the logging down to a site or a specific cond.

Regards

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests