24,923
社区成员
发帖
与我相关
我的任务
分享
<VirtualHost *:80>
ServerName host.com
RewriteEngine On
RewriteCond %{HTTP_HOST} ^shop([0-9]+)\.host\.com$
RewriteRule ^/$ http://www.host.com/shop/index.php?id=%1 [P,L]
RewriteRule ^/news-([0-9]+)\.html$ http://www.host.com/shop/news.php?id=$1 [P,L]
</VirtualHost>