Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

    Mar 19, 2003
    Likes Received:
    Trophy Points:
    Im trying to add some rules to httpd.conf and it doesnt work.

    RewriteEngine On
    RewriteRule /robots\.txt$ /var/www/cgi-bin/ [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 script :confused: Support Ticket Number:
    #1 sexy_guy, Jul 3, 2003
    Last edited: Jul 3, 2003

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice