I'm trying to write an apache config that can be included in ANY virtual host configuration by using an include statement. For some reason, this doesn't work:
#RewriteEngine On
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}.*$ [NC]
#RewriteRule ^.*\.(gif|jpg|swf|css|png|jpe|jpeg|js)$ http://www.theadultwire.com/someurl.html [NC,R]
Any ideas?
#RewriteEngine On
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}.*$ [NC]
#RewriteRule ^.*\.(gif|jpg|swf|css|png|jpe|jpeg|js)$ http://www.theadultwire.com/someurl.html [NC,R]
Any ideas?

Comment