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