亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    wamp怎么去掉index.php

    wamp去掉index.php的方法:1、在httpd.conf配置文件中加載mod_rewrite.so模塊;2、將None改為All;3、將URL_MODEL設置為2;4、將htaccess文件放到根目錄下。

    wamp怎么去掉index.php

    本文操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

    wamp怎么去掉index.php?WAMP中 省略index.php

    1.httpd.conf配置文件中加載了mod_rewrite.so模塊 //在APACHE里面去配置

    #LoadModule rewrite_module modules/mod_rewrite.so把前面的警號去掉

    2.AllowOverride None 講None改為 All //在APACHE里面去配置 (注意其他地方的AllowOverride也統(tǒng)統(tǒng)設置為ALL)

    <Directory "D:/server/apache/cgi-bin"> AllowOverride none  改   AllowOverride ALL Options None Order allow,deny Allow from all </Directory>

    3.確保URL_MODEL設置為2,在項目的配置文件里寫

    return Array(    'URL_MODEL' => '2', );

    4 .htaccess文件必須放到跟目錄下

    這個文件里面加:

    <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>

    推薦學習:《PHP視頻教程》

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號