The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats up with the rewrite engine????

Discussion in 'General Discussion' started by sexy_guy, Jul 3, 2003.

  1. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    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:
     
    #1 sexy_guy, Jul 3, 2003
    Last edited: Jul 3, 2003
Loading...

Share This Page