QQ登录 账号密码登陆 官网首页

伪静态配置

Linux 下Apache开启伪静态的配置


1、打开Apache的配置文件httpd.conf


     #LoadModule rewrite_module modules/mod_rewrite.so  

       把前面的 “#”去掉


2、把 AllowOverride None 改为  AllowOverride All

  1. #  

  2. # AllowOverride controls what directives may be placed in .htaccess files.  

  3. # It can be "All", "None", or any combination of the keywords:  

  4. #   Options FileInfo AuthConfig Limit  

  5. #  

  6. AllowOverride None  



3,让Apache支持.htaccess


  1. 文章未显示完整,要查看完整内容,请购买正版