视频教程:
http://down2.php168.com/mv/9.rar 用记事本打开 C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1 localhost
下面增加要绑定解析的域名:
127.0.0.1
www.cms168.com将PHP168整站系统复制到任意目录下。
打开D:\p8-server\local\apache2\conf\vhosts\localhost.txt
在最底部加入:
<VirtualHost *:80>
DocumentRoot D:/程序存放文件夹的路径
php_admin_value open_basedir D:/程序存放文件夹的路径
ServerName
www.xxx.com # 伪静态#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.htm$ $1/list.php?fid=$2&page=$3
RewriteRule ^(.*)/bencandy-([0-9]+)-([0-9]+)-([0-9]+)\.htm$ $1/bencandy.php?fid=$2&id=$3&page=$4
</IfModule>
# 伪静态#
</VirtualHost>
D:\p8-server\Apache Restart
运行这个重新启动Apache,让刚才的设置生效,就可以用你的域名在本机调试了。