<VirtualHost *:80>
    DocumentRoot C:\AppServ\www\www
    NameVirtualHost *:80
    ServerName www.wwwtest.cn

#添加下面代码
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule ^.* - [F]
    RewriteRule ^/([a-zA-Z]+).html$ /index.php?load=$1
    RewriteRule ^/([a-z]+)-([0-9]+).html$ /index.php?load=$1&act=detail&id=$2
    RewriteRule ^/([a-z]+)-([0-9]+)-([0-9]+).html$ /index.php?load=$1&act=detail&id=$2&pageNum=$3
    RewriteRule ^/personal-([0-9a-zA-Z]+).html$ /index.php?load=personal&act=index&type=$1
    RewriteRule ^/([a-z]+)-([0-9]+)-([0-9]+).html$ /index.php?load=$1&act=infolist&pageNum=$2&sid=$3
    RewriteRule ^/([a-z]+)-list-([0-9]+).html$ /index.php?load=$1&act=infolist&pageNum=$2
    RewriteRule ^/([a-z]+)-list-([0-9]+)-([0-9]+).html$ /index.php?load=$1&act=infolist&pageNum=$2&sid=$3
</IfModule>
#添加上面代码

</VirtualHost>