0

我使用.htaccess:

RewriteEngine On
RewriteRule phpMyAdmin/(.*)$ phpMyAdmin/$1 [L]
RewriteRule img/(.*)$ img/$1 [L]
RewriteRule css/(.*)$ css/$1 [L]
RewriteRule js/(.*)$ js/$1 [L]
RewriteRule robots.txt$ robots.txt$1 [L] ????
RewriteRule .* index.php

允许读取 robots.txt 海峡,它只读取 robots.txt 而不是 robots.txtasdfa、robots.txtttt 等 URL 吗?谢谢

4

1 回答 1

1

Try with:

RewriteRule ^robots\.txt$ - [L]
于 2013-07-04T06:58:05.453 回答