我正在写一个 mod_rewrite 脚本。
.htaccess
到目前为止,这是我的文件:
RewriteEngine On
Options FollowSymLinks
RewriteCond %{REQUEST_URI} !^/comingsoon.php$
RewriteRule ^(.*)$ /comingsoon.php
可悲的是,它导致了一条错误消息。确切的信息是:
Forbidden
You don't have permission to access /comingsoon.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
该文件comingsoon.php
肯定存在,并且可以在没有.htaccess
文件时访问。
但是,当我删除该Options FollowSymLinks
行时,一切正常。
是什么原因造成的,我该如何解决它以使该选项处于活动状态?