日期:2014-05-17 浏览次数:20750 次
RewriteEngine on RewriteCond %{HTTP_HOST} [^.]+\.mydomain\.com$ RewriteCond %{HTTP_HOST} !^(www|admin)\.mydomain\.com$ RewriteRule ^/?$ /%{HTTP_HOST}%{REQUEST_URI} [C] RewriteRule news.mydomain.com /news.php [L]
RewriteRule news.mydomain.com/(\d+).html /news_info.php?id=$1