我安装了 UwAmp 2.0,一切正常,然后我决定安装 UwAmp 3.0.2。
但是,现在重写规则不起作用。
例如,这个返回 404 错误:
RewriteRule ^([^/]+)/$ /category.php?label=$1 [L]
访问http://foo.test/mycategory/时 (如果我访问http://foo.test/category.php?label=mycategory 就可以了)。
这些是 Apache conf 文件的内容
<VirtualHost 127.0.0.1:80>
#UWAMP Generate Virtual Host
DocumentRoot "C:\Uwamp-3-0-2\web"
ServerName "foo.test"
<Directory "C:\Uwamp-3-0-2\web">
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
我不确定我做错了什么。欢迎任何帮助。