PHP URL重写让你自已电脑也支持伪静态
作者:admin 日期:2012-07-25
一.让Apache支持mod_rewrite
打开Apache配置文件httpd.conf,找到如下:#LoadModule rewrite_module modules/mod_rewrite.so
开启rewrite,去点前面"#"
二.开始重载Allowoverride
查找apache配置文件找到如下
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
将AllowOverride None改为 AllowOverride All
三.修改
#APMServ默认虚拟主机
NameVirtualHost *:803
<VirtualHost *:803>
ServerName *
DocumentRoot "D:/APMServ/APMServ5.2.0/www/htdocs"
</VirtualHost>
<Directory "D:/APMServ/APMServ5.2.0/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride All
order Deny,Allow
Allow from all
</Directory>
打开Apache配置文件httpd.conf,找到如下:#LoadModule rewrite_module modules/mod_rewrite.so
开启rewrite,去点前面"#"
二.开始重载Allowoverride
查找apache配置文件找到如下
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
将AllowOverride None改为 AllowOverride All
三.修改
#APMServ默认虚拟主机
NameVirtualHost *:803
<VirtualHost *:803>
ServerName *
DocumentRoot "D:/APMServ/APMServ5.2.0/www/htdocs"
</VirtualHost>
<Directory "D:/APMServ/APMServ5.2.0/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride All
order Deny,Allow
Allow from all
</Directory>
评论: 0 | 引用: 0 | 查看次数: 38186
发表评论
你没有权限发表留言!