Apache开启伪静态
2014-04-03 16:50
369 查看
加载Rewrite模块:
在conf目录下httpd.conf中找到
LoadModule rewrite_module modules/mod_rewrite.so
这句,去掉前边的注释符号“#”,或添加这句。
允许在任何目录中使用“.htaccess”文件,将“AllowOverride”改成“All”(默认为“None”):
# 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 All
在conf目录下httpd.conf中找到
LoadModule rewrite_module modules/mod_rewrite.so
这句,去掉前边的注释符号“#”,或添加这句。
允许在任何目录中使用“.htaccess”文件,将“AllowOverride”改成“All”(默认为“None”):
# 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 All
相关文章推荐
- apache 开启伪静态支持
- Linux 下Apache开启伪静态的配置
- apache php 开启伪静态
- PHP开发入门-Apache开启伪静态
- 开启apache中的URL重写组件并配置.htaccess实现伪静态
- 用node.js可以开启静态服务 不需要借助apache 或者xampl
- apache伪静态设置Apache如何开启伪静态
- Apache开启伪静态
- apache开启伪静态的方法分享
- Apache开启伪静态
- linux apache开启伪静态
- Apache开启伪静态
- apache开启伪静态
- apache 开启伪静态支持
- apache 开启伪静态支持
- Apache开启伪静态
- Apache开启伪静态示例
- Apache开启伪静态
- Apache 开启伪静态
- centos7 apache设置伪静态 开启rewrite_module