I've got this pretty strange issue.
I have my shop installed in a directory /shop/ on the server (Apache).
The .htaccess has the following code:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /shop
RewriteCond %{HTTP_HOST} ^mysite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mysite.com$
RewriteRule ^(.*)$ "http\:\/\/www\.mysite\.com\/shop\/$1" [R=301,L]
The script works fine: all the links are redirected to [http://www.mysite.com/shop/] but for the search robot don't see the robots.txt, which is as well redirected to (and located in) the /shop/ directory.
The question is: how to add an exception to the code in .htaccess for the file robots.txt?
P.S. File is opened in browser fine, but the robot still ignores it, because of 301 redirect (according to an answer from the search engine site support.
P.P.S. It's not google.
Thanx!
|
|


