mod_rewrite question
Posted: Fri Feb 24, 2006 1:51 pm
Hello,
I'm trying to set up mod rewrite so it will convert xxx.site.com to site.com/fwd.php?username=xxx. I got this in my htaccess:
But it doesn't seem to be working. Probably some dumb regex problem again.
Any help is appreciated.
Thanks.
I'm trying to set up mod rewrite so it will convert xxx.site.com to site.com/fwd.php?username=xxx. I got this in my htaccess:
Code: Select all
RewriteEngine on
RewriteRule ^([^/\.]+).site.com/? fwd.php?username=$1 [L]Thanks.