.htaccess不起作用


.htaccess is not working

我购买了级别为1的主机gator vps服务器,必须在该服务器上部署我的zend应用程序但我的重写规则不起作用,我尝试了最简单的

RewriteRule ^test.html http://www.google.com [NC,L]

但没有运气

我在httpd.conf中重写了引擎还检查了AcssesFile .htaccess集合这是我的.htaccess

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

我已经筹集了门票,但他们不会在一级套餐上帮助我:)。。。任何建议或指示都将对有很大帮助

您是否允许在httpd.conf文件中越权?

Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

如果设置为none,则不能使用htaccess文件。将其更改为"全部"。

Ahh得到了解决方案:我还没有在httpd.conf中配置虚拟主机,现在一切都在工作——