国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > Wordpress > 正文

修改固定鏈接后不能訪問文章問題_訪問時提示404錯誤

2024-09-07 00:49:53
字體:
來源:轉載
供稿:網友

修改固定鏈接后不能訪問文章問題,或者訪問時提示404錯誤,如果你的Apache、PHP、Mysql系統架構是自己配置的,或使用的某些安裝包,可能會有這個問題,具體解決辦法如下:

(1)Apache中的rewrite模塊沒有開啟,在配置文件httpd.conf中去除這一行前面的#號就可以了

#LoadModule rewrite_module modules/mod_rewrite.so 變為:

LoadModule rewrite_module modules/mod_rewrite.so 

(2)AllowOverride Not Enabled 

服務器可能沒打開AllowOverride,如果Apache中配置文件httpd.config的AllowOverride設置的是None,那.htaccess將被忽略,正確的設置如下:

  1. Directory / 
  2.     Options FollowSymLinks 
  3.     AllowOverride All 
  4. #    Order deny,allow 
  5. #    Deny from all 
  6. /Directory 

也需要在DocumentRoot打開AllowOverride:

  1.  Directory "D:/wamp/www/" 
  2.     # Possible values for the Options directive are "None", "All", 
  3.     # or any combination of: 
  4.     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 
  5.     # Note that "MultiViews" must be named *explicitly* --- "Options All" 
  6.     # doesn't give it to you. 
  7.     # The Options directive is both complicated and important.  Please see 
  8.     # http://httpd.apache.org/docs/2.2/mod/core.html#options 
  9.     # for more information. 
  10.     Options Indexes FollowSymLinks 
  11.     # AllowOverride controls what directives may be placed in .htaccess files. 
  12.     # It can be "All", "None", or any combination of the keywords: 
  13.     #   Options FileInfo AuthConfig Limit 
  14.     AllowOverride all 
  15.     # Controls who can get stuff from this server. 
  16. #   onlineoffline tag - don't remove 
  17. #    Order Allow,Deny 
  18. #    Allow from all 
  19.  /Directory 
注意,以上修改完成后,要重啟Apache才能生效。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 鹿泉市| 旬邑县| 仪征市| 龙陵县| 吉木乃县| 滁州市| 教育| 祥云县| 广州市| 罗甸县| 于都县| 长阳| 贺州市| 承德市| 大连市| 南召县| 罗源县| 云和县| 三都| 龙山县| 合水县| 金华市| 灌阳县| 都昌县| 泸州市| 驻马店市| 绥宁县| 共和县| 宜黄县| 舞阳县| 巨鹿县| 大连市| 镇安县| 辽中县| 新源县| 和林格尔县| 武功县| 望谟县| 咸丰县| 仙桃市| 石河子市|