mod_rewrite problem
Posted: Tue Apr 18, 2006 12:10 pm
A while ago, someone on these forums (don't remeber who) was nice enough to help me with the following mod_rewrite rule. Basically, when <something>.tmeet.com is entered, I want it to forward to tmeet.com/fwd.php?username=something. The obvious exception is www, which should point to the index page. However, I recently came up on a problem: tmeet.com (with nothing in front of it) gives me a 404 page.I posted my .htaccess file below, hoping one of you gurus can provide a pointer or two.
Thanks.
Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.+) %{HTTP_HOST} [C]
RewriteRule ([^.]+)\.tmeet\.com$ fwd.php?username=$1