something like this should work...
but, why are you using a mod-rewrite for this and not just having a subdomain setup? or are you just trying to make chat.php look like it is index.php? if that is the case, just rename chat.php and any code referencing chat.php to be index.php and problem solved.Code:Options +FollowSymLinks RewriteEngine On RewriteBase /subdomain/ RewriteCond %{HTTP_HOST} !www.domain.com$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC] RewriteRule (.*)chat.php [NC,QSA]






Bookmarks