creating dynamic subdomains using htaccess
Hi everyone. I'm working on a little project where i need to implement some mod rewrites. This is what i have so far:
My question is with the last 5 lines. I want to rewrite http://ma.liltext.com to http://liltext.com/users.php?user=ma. Unfortunately, I think it is rewriting to http://ma.liltext.com/users.php?user=ma, so none of the linked content (CSS, images, etc) is being found. I'm still new to mod rewrites, so I'm not seeing the problem. If anyone could help, I'd be very thanksful. :o)
x-post webdesign
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([^.]+)$ index\.php?id=$1
RewriteCond %{HTTP_HOST} !^www\.liltext\.com [NC]
RewriteCond %{HTTP_HOST} ([^.]+)\.liltext\.com [NC]
RewriteCond %{REQUEST_URI} !^/users\.php$ [NC]
RewriteCond %{QUERY_STRING} !^user=. [NC]
RewriteRule (.*) /users.php?user=%1 [L]My question is with the last 5 lines. I want to rewrite http://ma.liltext.com to http://liltext.com/users.php?user=ma. Unfortunately, I think it is rewriting to http://ma.liltext.com/users.php?user=ma, so none of the linked content (CSS, images, etc) is being found. I'm still new to mod rewrites, so I'm not seeing the problem. If anyone could help, I'd be very thanksful. :o)
x-post webdesign
