random1 Posted September 30, 2010 Share Posted September 30, 2010 Hi I have the code: # Write log info for rewrites <IfModule mod_rewrite.c> RewriteLog "/usr/local/var/apache/logs/rewrite.log" RewriteLogLevel 9 </IfModule> I add this code to my .htaccess file and I get the error: RewriteLog not allowed here Any ideas where this code needs to appear? Quote Link to comment https://forums.phpfreaks.com/topic/214790-apache-log-rewrites/ Share on other sites More sharing options...
trq Posted September 30, 2010 Share Posted September 30, 2010 RewriteLog needs to go within either your main httpd.conf file or your vhost config. It cannot be placed within a .htaccess file. Quote Link to comment https://forums.phpfreaks.com/topic/214790-apache-log-rewrites/#findComment-1117444 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.