看下面的设置就明白拉,是我自己一个站用的 代码: <VirtualHost *.*.*.*> ServerAdmin mail DocumentRoot /www/www.*.com/www/htdocs ServerName www.*.com ErrorLog /var/log/www.*.com/error_log CustomLog /var/log/www.*.com/access_log common RewriteEngine On RewriteRule ^/type([0-9]+).html$ /type.php?typeid=$1 [PT] RewriteRule ^/type([0-9]+)page([0-9]+).html$ /type.php?typeid=$1&page=$2 [PT] RewriteRule ^/index.html /index.php [PT] RewriteRule ^/list.html /list.php [PT] RewriteRule ^/listpage([0-9]+).html$ /list.php?page=$1 [PT] RewriteRule ^/view([0-9]+).html$ /view.php?id=$1 [PT] </VirtualHost>