Pon*_*gla 1 mod-rewrite apache-2.2
当我去/index/test 我得到/index.php/test。我希望能够从 /index/page1 修改为 /index.php?page=1 但即使没有任何 .htaccess 文件,我也得到了没有变量的索引文件。
似乎我的服务器设置为猜测扩展名并获取文件(如果存在)。是标准配置的 Mac os X Server 10.6 (apache2)。
有任何想法吗?
我发现默认情况下在 /etc/apache2/sites/0001_any_80_[mydomain].conf 中设置了多视图
只需将 +MultiViews 更改为 -MultiViews:
选项全部 -Includes -ExecCGI -Indexes +MultiViews
| 归档时间: |
|
| 查看次数: |
364 次 |
| 最近记录: |