課程
/后端開發(fā)
/PHP
/快速入門ThinkPHP框架—理論篇
設(shè)置index.php的隱藏文件時(shí),Apache的配置中需要開啟的哪條命令是什么。我沒聽清楚
2016-01-13
源自:快速入門ThinkPHP框架—理論篇 4-4
正在回答
apache:1,添加模塊:去http.conf 把#LoadModule rewrite_module modules/mod_rewrite.so 去掉最前面的#?2,修改模塊使用權(quán)限:把“AllowOverride None”改成“AllowOverride All”(應(yīng)用于全目錄)當(dāng)然:如果想在某個(gè)虛擬主機(jī)VirtualHost單獨(dú)使用,那么就只在http.conf或者extra/httpd-vhost.confVirtualHost中配置代碼中加入??Options Indexes FollowSymLinks??? AllowOverride All??? Order allow,deny??? Allow from all3,添加rewrite規(guī)則,.htaccess在這個(gè)文件中的規(guī)則,來隱藏index.php
lsz_161206 提問者
為什么我在我的虛擬主機(jī)上配置了上面你說的代碼還是不行啊The requested URL /muke/Index/user/id/1.html was not found on this server.
舉報(bào)
快速入門ThinkPHP框架教程,掌握ThinkPHP的理論基礎(chǔ)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-01-13
apache:
1,添加模塊:去http.conf 把
#LoadModule rewrite_module modules/mod_rewrite.so 去掉最前面的#?
2,修改模塊使用權(quán)限:
把“AllowOverride None”
改成“AllowOverride All”(應(yīng)用于全目錄)
當(dāng)然:如果想在某個(gè)虛擬主機(jī)VirtualHost單獨(dú)使用,那么就只在
http.conf或者extra/httpd-vhost.conf
VirtualHost中配置代碼中加入??
Options Indexes FollowSymLinks??? AllowOverride All??? Order allow,deny??? Allow from all
3,添加rewrite規(guī)則,.htaccess在這個(gè)文件中的規(guī)則,來隱藏index.php
2016-07-24
為什么我在我的虛擬主機(jī)上配置了上面你說的代碼還是不行啊The requested URL /muke/Index/user/id/1.html was not found on this server.