Zend framework zend framework 1.12 robots.txt

Zend framework zend framework 1.12 robots.txt,zend-framework,frameworks,robots.txt,Zend Framework,Frameworks,Robots.txt,我创建了一个robots.txt文件,其中包含: User-agent: * Disallow: / 此robots.txt文件已放在以下目录中: wwwsite/application wwwsite/library wwwsite/ZendFramework-1.10.7.tar.gz wwwsite/public . |--- captcha | |--- css |--- js |--- img |--- files | .htaccess index.php robots.txt

我创建了一个robots.txt文件,其中包含:

User-agent: *
Disallow: /
此robots.txt文件已放在以下目录中:

wwwsite/application
wwwsite/library
wwwsite/ZendFramework-1.10.7.tar.gz
wwwsite/public
.
|--- captcha
|
|--- css
|--- js
|--- img
|--- files
|
.htaccess
index.php
robots.txt
它似乎不像这样,因为当我访问www.site.com/robots.txt时,仍然会收到错误消息,消息是:未找到资源“robots.txt”

****更新**** 我的.htaccess文件如下所示:

php_value "short_open_tag" "on"

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]

有没有一种方法可以忽略zend mvc方法而像Apache中的重定向一样使用它?因此,当mysite.com/robots.txt被调用时,它会指向/robotx.txt?

你的.htaccess?Tim Fountain中有什么?我已经更新了op。如果它在公用文件夹中,应该可以。可能该文件上的烫发导致web服务器进程无法读取它?感谢您的快速回复。该文件似乎具有正确的权限。我已经检查过了,robots.txt文件的权限如下:-rw-r-r-