【发布时间】:2022-01-23 00:32:33
【问题描述】:
我在Windows 10 上使用apache XAMPP 并试图让htaccess 工作。到目前为止我有这个......
RewriteEngine On
RewriteRule ^noexist/?$ /folder/
我想找个人去
www.mysite.com/noexist/test.php -> www.mysite.com/folder/test.php
但我仍然希望 URL 为 www.mysite.com/noexist/test.php
我刚刚收到 404,我哪里出错了?我已经通过输入无效代码确认正在加载 htaccess 文件,它会引发错误,所以我确定该文件正在被使用。
【问题讨论】:
标签: apache .htaccess mod-rewrite xampp