Thread
:
htaccess restricting access to robots.txt
View Single Post
07-10-2012, 11:58 AM
PM User
|
#
2
abduraooft
Supreme Master coder!
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
Quote:
RewriteRule (.*) app/webroot/$1 [L]
You may need to add a condition to the above line, like
Code:
RewriteCond %{REQUEST_URI} !^/robots\.txt [NC]
(assuming the robots.txt file is on the root
/
)
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --
(Dr. APJ. Abdul Kalam)
101 ways to post unanswerable questions in CF
!
SPREAD - the global community of drilling, completion & subsea professionals
Users who have thanked abduraooft for this post:
Dannyeo
(07-10-2012)
abduraooft
View Public Profile
Find More Posts by abduraooft