十月 CMS:尽管重定向,http://localhost/backend returns 404,而 http://localhost/index.php/backend 有效

October CMS: Despite the redirection, http://localhost/backend returns a 404, whereas http://localhost/index.php/backend works

我已经安装了 Laravel October CMS。当我访问http:///localhost/index.php/backend时,我可以看到后端的登录页面。当我访问 http:///localhost/backend 时出现 404 Not Found.

我查看了 .htaccess,我取消了对 RewriteBase 的注释并设置了值 / /index.php

然而它仍然是 returns 404。你知道为什么吗?

我相信您只是根据您显示的示例寻找以下规则。另外,请确保在测试您的 URL 之前清除浏览器缓存。

RewriteEngine ON
RewriteRule ^backend/?$ index.php [NC,L]

如果这是您的 htaccess 文件的唯一规则,请将上面的 L 更改为 END