PHP开发入门-Apache开启伪静态
来源:互联网 发布:网络关系成瘾 编辑:程序博客网 时间:2024/05/18 02:30
环境:
系统 Windows
Apache 2.2
加载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
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
在conf\httpd.conf 最后一行添加
RewriteEngine On
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
参考:http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/02/20/1958926.html
1 0
- PHP开发入门-Apache开启伪静态
- PHP开发入门-Apache开启伪静态
- apache php 开启伪静态
- Apache开启伪静态
- Apache 开启伪静态
- apache开启伪静态
- Apache开启伪静态
- Apache开启伪静态
- apache开启伪静态
- Apache开启伪静态
- apache开启伪静态的方法 php篇
- linux apache开启伪静态
- apache 开启伪静态支持
- apache开启.htaccess伪静态
- apache 开启伪静态支持
- Apache开启伪静态示例
- php+apache实现伪静态
- php apache伪静态配置
- 查询男生和女生成绩前三
- IOS UserDefaults简介(一)
- linux 开通ftp服务
- 批量修改Magento产品名称
- python中if __name__ == '__main__': 的解析
- PHP开发入门-Apache开启伪静态
- FreeMarker 数字 不要逗号
- WEKA-过滤器算法学习
- scp命令
- listview的优化
- 数据挖掘十大经典算法(详解)
- [iOS]关于状态栏(UIStatusBar)的若干问题
- 使用myeclipse打jar包
- Eclipse 调试技巧