cyphix
11-13-2007, 08:52 PM
I was wondering if someone can help me out with a small issue I am having with mod rewrite; I have experience rewriting URL's but am having trouble with this one..
Basically what I want to do is this..
username.domain.com = www.domain.com/users/username/
Also.... any other page that the user requests on the sub-domain would redirect to the appropriate page... such as..
username.domain.com/page1.html = www.domain.com/users/username/page1.html
username.domain.com/page2.html = www.domain.com/users/username/page2.html
username.domain.com/blah/something.html = www.domain.com/users/username/blah/something.html
..& so on..
Obviously I still want the subdomain "www" going to the main site & not to be re-written.
Thanks for any help! :)
Basically what I want to do is this..
username.domain.com = www.domain.com/users/username/
Also.... any other page that the user requests on the sub-domain would redirect to the appropriate page... such as..
username.domain.com/page1.html = www.domain.com/users/username/page1.html
username.domain.com/page2.html = www.domain.com/users/username/page2.html
username.domain.com/blah/something.html = www.domain.com/users/username/blah/something.html
..& so on..
Obviously I still want the subdomain "www" going to the main site & not to be re-written.
Thanks for any help! :)