允许服务器读取文件strait

时间:2013-07-04 06:56:40

标签: .htaccess rewrite

我使用.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,.... 感谢

1 个答案:

答案 0 :(得分:1)

尝试:

RewriteRule ^robots\.txt$ - [L]