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.

robots.txt & .htaccess question

Discussion in 'General Discussion' started by lamans, May 29, 2007.

  1. lamans

    lamans Member

    Joined:
    Mar 17, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    I have done a 301 redirect within .htaccess but i have just noticed google and the rest of the bots cant read my robots.txt file.

    Is there anyway to exclude the robots.txt file from redirecting which is in the root of www.mysite.com/robots.txt

    RewriteEngine On
    rewritecond %{http_host} mysite\.com$
    rewriteRule !forums* http://www.mysite.com/forums/ [R=301,L]

    RewriteCond %{QUERY_STRING} ^showtopic=([^&]+)&st=0$
    RewriteRule ^forums/index\.php$ http://www.mysite.com/forums/index.php?showtopic=%1 [R=301,L]

    Thanks
     
Loading...

Share This Page