</pre><span style="font-size:18px;">因thinkphp中 URL_MODEL为2 即rewrite模式</span><p></p><p><span style="font-size:18px;">需要将<span style="font-family: 微软雅黑; line-height: 30px;">Apache的配置过程,可以参考下:</span><br style="padding: 0px; margin: 0px; font-family: 微软雅黑; line-height: 30px;" /><span style="font-family: 微软雅黑; line-height: 30px;">1、httpd.conf配置文件中加载了mod_rewrite.so模块</span><br style="padding: 0px; margin: 0px; font-family: 微软雅黑; line-height: 30px;" /><span style="font-family: 微软雅黑; line-height: 30px;">2、AllowOverride None 将None改为 All</span><br style="padding: 0px; margin: 0px; font-family: 微软雅黑; line-height: 30px;" /><span style="font-family: 微软雅黑; line-height: 30px;">3、确保URL_MODEL设置为2</span><br style="padding: 0px
部署thinkphp时遇到只显示主页访问其他页面404的错误
最新推荐文章于 2022-07-21 11:45:07 发布