gpt4 book ai didi

php - Pico Install 中的子页面导致 404

转载 作者:搜寻专家 更新时间:2023-10-31 20:43:12 25 4
gpt4 key购买 nike

我下载了一个名为 Pico 的轻量级 PHP CMS 解决方案并将文件放入我的 MAMP 安装中。当我访问默认主页时,一切似乎都正常,但在单击指向“子页面”的链接(http://localhost:8888/pi​​co/subdir/)后,我被带到了一个通用的页面404 页面。由于子页面位于 /content/ 文件夹中,我是否需要调整我的 MAMP 安装的 .htaccess? Apache 设置?

如果有人熟悉 Pico,我想知道我是否错过了关键的安装步骤。

如有任何问题,请随时提出。

谢谢

最佳答案

我通过更改 Apache 站点配置中的 AllowOverride 设置以包含 mod_rewrite 指令来解决此问题 http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

您还需要启用“重写”模块:

slady@slady ~ $ sudo a2enmod rewrite 
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
slady@slady ~ $ sudo service apache2 restart
[ ok ] Restarting web server: apache2 ... waiting ..

关于php - Pico Install 中的子页面导致 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17689001/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com