Subdomains with Apache
Posted: Tue Nov 14, 2006 7:34 pm
Hello everyone. I'm using a web server with Apache and I need to redirect the users from http://username.domain.com to http://www.domain.com/view.php?u=username.
My problem right now isn't the rewrite rule, I am simply unable to open any page (as in, if I type http://randomness.domain.com I get no page at all, server not found). I called my hosting company and they told me that I had to upload a script to rewrite the URL's (which I thought mod_rewrite did?).
I also read somewhere that I need to add a DNS entry for the domain name, something like http://*.domain.com pointing to my web server's IP address. I cannot do this in my host's administration panel. The domain name is hosted with GoDaddy, am I able to do it there?
I'm not very familiar with this aspect of Apache, help would be greatly appreciated.
Thank you for your time.
My problem right now isn't the rewrite rule, I am simply unable to open any page (as in, if I type http://randomness.domain.com I get no page at all, server not found). I called my hosting company and they told me that I had to upload a script to rewrite the URL's (which I thought mod_rewrite did?).
I also read somewhere that I need to add a DNS entry for the domain name, something like http://*.domain.com pointing to my web server's IP address. I cannot do this in my host's administration panel. The domain name is hosted with GoDaddy, am I able to do it there?
I'm not very familiar with this aspect of Apache, help would be greatly appreciated.
Thank you for your time.