WinXp Apache虚拟主机开启Mod_rewrite
来源:互联网 发布:淘宝标题优化技巧软件 编辑:程序博客网 时间:2024/05/16 04:23
一,httpd.conf
1. 让Apache2.2加载mod_rewrite.so模块;
去掉:#LoadModule rewrite_module modules/mod_rewrite.so前的#
2. 将AllowOverride None改为AllowOverride All
搜索即可。
二,httpd-vhosts.conf
1. 虚拟主机配置单元,最后面加入代码:RewriteEngine On。然后再项目主目录中加入.htaccess文件即可,当然您也可以将重写规则写入虚拟主机配置单元中,也可以将RewriteEngine On入.htaccess文件中。
例,Localhost开启Mod_rewrite
<VirtualHost *:80>
ServerAdmin unknow@phplamp.com
DocumentRoot E:\Hosts\localhost
ServerName localhost
ServerAlias localhost
ErrorLog logs/localhost-error_log
CustomLog logs/localhost-access_log common
# 开启Rewrite
RewriteEngine On
1. 让Apache2.2加载mod_rewrite.so模块;
去掉:#LoadModule rewrite_module modules/mod_rewrite.so前的#
2. 将AllowOverride None改为AllowOverride All
搜索即可。
二,httpd-vhosts.conf
1. 虚拟主机配置单元,最后面加入代码:RewriteEngine On。然后再项目主目录中加入.htaccess文件即可,当然您也可以将重写规则写入虚拟主机配置单元中,也可以将RewriteEngine On入.htaccess文件中。
例,Localhost开启Mod_rewrite
<VirtualHost *:80>
ServerAdmin unknow@phplamp.com
DocumentRoot E:\Hosts\localhost
ServerName localhost
ServerAlias localhost
ErrorLog logs/localhost-error_log
CustomLog logs/localhost-access_log common
# 开启Rewrite
RewriteEngine On
</VirtualHost>
<hr>以上是网上的,但是第二条无法实现,而且不需要,第一条修改后,重新启动Apache服务器成功!
- WinXp Apache虚拟主机开启Mod_rewrite
- Apache下开启mod_rewrite
- 开启Apache mod_rewrite模块
- Apache 开启 mod_rewrite
- zend framework 也可以不需要开启apache的 mod_rewrite 模块 虚拟主机 运行
- apache开启虚拟主机方法
- openSUSE 11.2 开启 apache mod_rewrite 模块
- 开启Apache mod_rewrite模块完全解答
- 开启Apache mod_rewrite模块完全解答
- 开启Apache mod_rewrite模块完全解答
- Apache mod_rewrite
- apache mod_rewrite
- Apache如何开启Mod_rewrite模块以及Wordpress伪静态
- Apache如何开启Mod_rewrite模块以及Wordpress伪静态
- laravel无法正确路由,开启Apache mod_rewrite模块
- 如何在Apache中开启虚拟主机
- apache开启虚拟主机 并进行配置
- Apache虚拟主机开启PHP短标签
- h1 h2使用方法
- JS与AS3.0的交互
- HTML5 Top 10 Threats Stealth Attacks and Silent Exploits
- BBC遭受来自伊朗的攻击
- ERP的安全设计:Oracle Fusion Applications的安全架构
- WinXp Apache虚拟主机开启Mod_rewrite
- Android开发中,使用线程应该注意的问题!
- delphi常用函数五
- expect_out
- cassandra的replication_factor
- 网赚赔钱原因
- 魅力月全食,怎么看才过瘾?
- 计算机网络(第5版)
- mysql远程访问的设置