XAMPP 开启 URLRwrite (XAMPP version: 2.5 os:Windows Server 2003)
来源:互联网 发布:caffe怎么用 编辑:程序博客网 时间:2024/05/17 02:36
XAMPP 开启 URLRwrite (XAMPP version: 2.5 os:Windows Server 2003)
第一步
打开文件 http.conf
把下面这行前面的#去掉.
#LoadModule rewrite_module modules/mod_rewrite.so
第二步
在需要的站点目录下新建文件.htaccess 文件内容如下
<IfModule mod_rewrite.c>
#开启命令
RewriteEngine On
#站点(程序)根目录,注意并不总是"/",视情况而定
RewriteBase /
#转换规则
rewriterule do-([a-z0-9]+)-([0-9]+).html index.php?v=$1&id=$2
</IfModule>
第三步
重启 apache
如果不行.把下面 AllowOverride None 行的None改为All
<Directory />
Options FollowSymLinks ExecCGI Indexes
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
- XAMPP 开启 URLRwrite (XAMPP version: 2.5 os:Windows Server 2003)
- Windows 安装 xampp 开启服务 出错
- Bugzilla+Windows server+xampp 安装问题汇总
- xampp
- xampp
- XAMPP
- xampp
- XAMPP
- XAMPP
- xampp开启gzip方法
- xampp 开启反向代理
- Windows下XAMPP 1.7.3环境开启cURL模块
- XAMPP for Linux/windows
- windows xampp mongodb
- 在XAMPP中开启cURL
- ubuntu 中xampp开启ssl
- Windows Server 2008 上 XAMPP 配置NameVirtualHost的问题
- windows server 2012 xampp 80 端口被占用
- 离开公司时留给公司的十句话 与大家分享
- 影响我的一些话
- 一些实用的方法与特殊的运算符
- 中国互联网ceo全景调查
- 鬼吹灯。。
- XAMPP 开启 URLRwrite (XAMPP version: 2.5 os:Windows Server 2003)
- 取某个表某个字段的内容的sql函数
- C#操作存储过程,输入参数,返回结果
- Skyeye仿真软件的安装
- 项目开始啦!!!
- 路过的朋友没事进来看看谢谢
- 共享内存与线程局部存储(TLS)
- Windows下FFmpeg快速入门
- DateTime在ExtJs中无法正确序列化的问题