Whats up with the rewrite engine????

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
Im trying to add some rules to httpd.conf and it doesnt work.

RewriteEngine On
RewriteRule /robots\.txt$ /var/www/cgi-bin/robots.pl [L,T=application/x-httpd-cgi]
RewriteMap robots txt:/usr/local/apache/htdocs/.robots
RewriteCond ${robots:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
RewriteRule .* - [E=IS_ROBOT:true]
RewriteCond %{ENV:IS_ROBOT} true
RewriteCond %{REMOTE_HOST} !\.googlebot\.com$ [NC]
RewriteRule .* - [F,L]

Whats wrong with what i have? Line number 2 does not redirect anyone searching for robots.txt to my robots.pl script :confused:

cPanel.net Support Ticket Number:
 
Last edited: