View Single Post
Old 07-10-2012, 09:31 AM   PM User | #1
Dannyeo
New to the CF scene

 
Join Date: Jul 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Dannyeo is an unknown quantity at this point
Smile htaccess restricting access to robots.txt

Hi there,

I'm hoping that someone may be able to help me.

I believe my htaccess file is restricting access to my robots.txt file and would like to add an exception to the htaccess to enable search engines to find the file.

Does anyone have any thoughts on how to achieve this?

The code in my current htaccess file is:

Code:
<IfModule mod_rewrite.c>

   RewriteEngine on

   RewriteBase /
   
   RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]

   RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

   RewriteRule ^index$ http://mydomain.com/ [R=301,L]

   RewriteRule ^page/faqs faqs/ [L]

   RewriteRule ^page/(.*) static_pages/$1 [L]

   RewriteRule    ^$ app/webroot/Index    [L]

   RewriteRule    (.*) app/webroot/$1 [L]


</IfModule>
Thanks
Dannyeo is offline   Reply With Quote