锚点将用户带到根目录?

anchor taking user to root directory?

我有 3 个文件,packages.php、index.php 和 .htaccess。

packages (hastebin is down for me), index and .htaccess. This is live here. Currently, index works as you can see by the no .php extension and the extra slash. However, if you go into Packages -> Create or Manage Packages, it takes you to piggypiglet.me/packages. I have no clue why this is? It also redirects you there when trying to manually open https://www.piggypiglet.me/minepos/admin/packages。我试过将锚点更改为 ./packages 但这并没有解决它。我真的很茫然,我不知道是什么原因造成的。此外,.php 扩展名是必需的,因为我将在解决此问题后立即在文件中使用 php。

你的 link 到 admin/packages 目前对我来说工作正常。你解决了吗?否则,我怀疑您的浏览器可能正在缓存某个先前版本 ( [R=permanent] ) 的重定向。我想到的另一件事是尝试使用 RewriteBase。