脚本宝典收集整理的这篇文章主要介绍了WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析 <font color=red>原创</font>,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
本文实例讲述了WampServer设置apache伪静态出现404 not found及You don't have PErmission to access / on this server解决方法。分享给大家供大家参考。具体如下:
出现404 not found 时:
确保LoadModule rewrITe_module modules/mod_rewrite.so开启
然后
有时候在WampServer上设置Apache伪静态还是会出现
You don't have permission to access / on this server
的提示
这时候进一步修改:
将Options FollowSymLinks改为:Options All
问题即可解决。
附(伪静态测试代码):
新建php页面index.php:
<?php if($_GET){ echo $_GET["id"]; } ?>
同级目录下建立文件.htaccess,写入伪静态规则如下:
url地址栏写入:
http://localhost/t_aaa.html
伪静态设置成功则输出:aaa
希望本文所述对大家的Apache服务器设置有所帮助。
以上是脚本宝典为你收集整理的WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析 <font color=red>原创</font>全部内容,希望文章能够帮你解决WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法分析 <font color=red>原创</font>所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。