Hi I have a problem i would like to do subdomains with mod rewrite I have this: RewriteEngine On RewriteCond %{HTTP_HOST} !^www [NC] RewriteCond %{HTTP_HOST} ^sub\.mydomain\.com [NC] RewriteRule ^$ /view.php?id=4 [L] that make me http://sub.mydomain.com/ But I need do on subdomains pages like http://sub.mydomain.com/page/ and http://sub.mydomain.com/page/next-page Can anybody help me how can i do it? thanks