打開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也用上固定鏈接了。
apache開啓.htaccess支持
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
UBUNTU全自動安裝微軟雅黑字體
wooden915
2020-06-22 07:29:43
fedora 15 怎麼安裝thinkpad sl410 無線網卡驅動
wooden915
2020-02-25 20:59:14
mysql 重設置密碼
wooden915
2020-02-25 20:59:14
centos/redhat 利用yum快速安裝php mysql gd apache
wooden915
2018-09-03 02:45:39
當前服務器環境不支持curl組件
wooden915
2018-09-03 02:45:38
爲Centos5添加網易163、搜狐的yum源
wooden915
2018-09-03 02:45:22
Linux能力機制-capability
lisemi
2018-09-01 06:41:55
ALSA音頻庫移植,alsa-utils工具的使用
lisemi
2018-09-01 06:41:50
ubuntu安裝 oh my zsh
lisemi
2018-09-01 06:41:50
vi/vim 基本使用方法
lisemi
2018-09-01 06:41:48
linux系統下inittab 和 fstab 文件以及內部命令介紹
lisemi
2018-09-01 06:41:48
linux文件系統下常用目錄文件說明
lisemi
2018-09-01 06:41:45