Logging a specific rewrite condition
2 posts
• Page 1 of 1
Logging a specific rewrite condition
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!
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!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Logging a specific rewrite condition
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
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests