How can I change my rewrite rule to keep the original subdomain url in the address bar?
Currently if I type in "username.domain.com" it gets redirected to "domain.com/username"...and I would like the address bar to stay at "username.domain.com".
I'm using wildcard subdomains with this rewrite rule in my httpd.conf file:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]
RewriteRule ^(.*)$ http://domain.com/sites/%2 [L]
</IfModule>
Is this even possible?
Thanks in advance.