設置 | 登錄 | 註冊

作者共發了1篇帖子。

[Apache]apache開啟.htaccess支持

1樓 張樹人 2011-2-11 02:43
打開apache的配置文件httpd.conf
1.把#LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉。
2.找到
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
把 AllowOverride None 改為 AllowOverride All
最後就是重啟一下apache伺服器使配置生效,這樣就支持.htaccess文件了,終於我自己電腦上用於測試的WordPress也用上固定連結了。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。