I know theres a .htaccess code that i can use for this...
What i wana do is create a virtual subdomain.
Example people register at my site builder script im coding...
the path would be like this
http://siteurl.com/sites/index.php?username
But i want it to be
http://username.siteurl.com
So the .htaccess code should rewrite and make a redirect from
http://username.siteurl.com
to
http://siteurl.com/sites/index.php?username
So if you for example put in
http://anyword.siteurl.com it will redirect to
http://siteurl.com/sites/index.php?username
---------------------------------------------------
Can someone please share this code with me?
What i wana do is create a virtual subdomain.
Example people register at my site builder script im coding...
the path would be like this
http://siteurl.com/sites/index.php?username
But i want it to be
http://username.siteurl.com
So the .htaccess code should rewrite and make a redirect from
http://username.siteurl.com
to
http://siteurl.com/sites/index.php?username
So if you for example put in
http://anyword.siteurl.com it will redirect to
http://siteurl.com/sites/index.php?username
---------------------------------------------------
Can someone please share this code with me?



Comment