linux 下設置apache開啟htaccess啟用步驟_Web服務器教程
工作中遇到的問題
將joomla安裝好后,在服務器上啟用rewrite功能,但無效
需在服務器中設置
1.進入/tec/apache2/sites-enabled目錄下
2.找到網站配置文件進行編輯 vi XXX
3.編輯以下內容為
</directory>
Allowoverride All
<directory>
并保存退出
4重啟apache
/tec/init.d/apache2 reload
或
/tec/init.d/apache2 restart
將joomla安裝好后,在服務器上啟用rewrite功能,但無效
需在服務器中設置
1.進入/tec/apache2/sites-enabled目錄下
2.找到網站配置文件進行編輯 vi XXX
3.編輯以下內容為
</directory>
Allowoverride All
<directory>
并保存退出
4重啟apache
/tec/init.d/apache2 reload
或
/tec/init.d/apache2 restart
相關Web服務器教程:
- 相關鏈接:
- 教程說明:
Web服務器教程-linux 下設置apache開啟htaccess啟用步驟。