我有一个简单的.htaccessredirect不是文件或目录的一切index.php
RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php
这对80和443端口是完美的,但在https://mysite.com:450上提供404,如https://mysite.com:450/controller/action这样的url被调用。
什么需要修改?
我的第一个怀疑是,与端口80和443相匹配的虚拟主机与端口450相匹配的虚拟主机并不完全相同。
最有可能的是:450虚拟主机缺lessAllowOveride All或者具有不同的DocumentRoot ,它们不包含相同的.htaccess文件。