Apache在Windows下使用Mod_rewrite模块
来源:互联网 发布:秦山核电待遇知乎 编辑:程序博客网 时间:2024/05/23 15:13
很简单的配置,确花了我一些时间,把它贴出来,给大家参考
1 在Apache/conf/http.conf中,打开
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c (看程序版本)
Options Indexes FollowSymLinks
裡面會包著一行:
AllowOverride None
把它改成
AllowOverride All
Order allow,deny
Allow from all
重新启动Apache使修改生效。
2 使用DOS的Copy命令建立.htaccess文件,如下
RewriteEngine on
RewriteBase /itscms
RewriteRule cms/.*?/.html cms.php
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- Apache在Windows下使用Mod_rewrite模块
- CSDN社区散红包 积分兑换C币即可得SD2.0技术大会门票
- ITS-CMS 2.0 URL设计构想
- SharePoint:DataView如何绑定Web Service返回的主从表数据集
- 小道消息 sd2.0大会国外大师介绍
- Intel持续发力高性能 国内服务器厂商纷纷加盟
- Apache在Windows下使用Mod_rewrite模块
- 修改自定义数据类型精度
- FleaPHP 开发指南 - 1. 开始前的准备工作
- Java规则引擎-Drools
- LaTeX 常用功能
- Authorization and Profile Application Block 1.0研究总结
- FleaPHP 开发指南
- 你应该知道的10件关于Java 6的事情
- 如何只用HTML画出一个圆角的Table表格?