最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

WampServer設(shè)置apache偽靜態(tài)出現(xiàn)404 not found及You don't have permission to access / on this server解決方法分析 原創(chuàng)

原創(chuàng)  更新時(shí)間:2015年10月16日 15:57:09   原創(chuàng) 投稿:shichen2014  
這篇文章主要介紹了WampServer設(shè)置apache偽靜態(tài)出現(xiàn)404 not found及You don't have permission to access / on this server解決方法,較為詳細(xì)的分析了幾種常見情況,非常具有實(shí)用價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了WampServer設(shè)置apache偽靜態(tài)出現(xiàn)404 not found及You don't have permission to access / on this server解決方法。分享給大家供大家參考。具體如下:

出現(xiàn)404 not found 時(shí):

確保LoadModule rewrite_module modules/mod_rewrite.so開啟
然后

復(fù)制代碼 代碼如下:
<Directory />
    Options FollowSymLinks
    AllowOverride none  #此處把none 改成All
    Order allow,deny
    deny from all
</Directory>

 
出現(xiàn):You don't have permission to access / on this server
復(fù)制代碼 代碼如下:
<Directory />
    Options FollowSymLinks
    AllowOverride none  #此處把none 改成All
    Order allow,deny
    deny from all  #此處把deny改成Allow
</Directory>

 
確保設(shè)置了默認(rèn)首頁:
復(fù)制代碼 代碼如下:
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>

有時(shí)候在WampServer上設(shè)置Apache偽靜態(tài)還是會(huì)出現(xiàn)
You don't have permission to access / on this server
的提示

這時(shí)候進(jìn)一步修改:

復(fù)制代碼 代碼如下:
<Directory />
    Options FollowSymLinks #此處將FollowSymLinks改為All
    AllowOverride All
    Order allow,deny
    deny from Allow
</Directory>

將Options FollowSymLinks改為:Options All

問題即可解決。

附(偽靜態(tài)測(cè)試代碼):

新建php頁面index.php:

<?php
 if($_GET){
 echo $_GET["id"];
 }
?>

同級(jí)目錄下建立文件.htaccess,寫入偽靜態(tài)規(guī)則如下:

復(fù)制代碼 代碼如下:
RewriteEngine On
RewriteRule ^t_(.*).html$ index.php?id=$1

URL地址欄寫入:

http://localhost/t_aaa.html

偽靜態(tài)設(shè)置成功則輸出:aaa

希望本文所述對(duì)大家的Apache服務(wù)器設(shè)置有所幫助。

相關(guān)文章

最新評(píng)論

平乡县| 嘉荫县| 阳信县| 新龙县| 六盘水市| 长葛市| 丽江市| 峨山| 红河县| 交口县| 玉树县| 大理市| 疏勒县| 定边县| 冕宁县| 友谊县| 奉化市| 青海省| 梁平县| 荆州市| 阿巴嘎旗| 皋兰县| 岳阳市| 阳春市| 正蓝旗| 谢通门县| 西充县| 鄂尔多斯市| 高碑店市| 喀喇| 巨野县| 宜川县| 汉沽区| 宾阳县| 景宁| 砀山县| 思茅市| 航空| 杨浦区| 蓬莱市| 阿瓦提县|