KNK Posted August 20, 2003 Share Posted August 20, 2003 Hello everyone, I been trying to figure this out all day and it\'s driving me crazy. I have read the mod_rewrite doc and that hasn\'t helped me ... I must be having a long brain fart or just dumb. I bee trying to figre out how to do this: http://USERNAME.domain.com to point to http://www.domain.com/script.php?user=USERNAME The have another script as well that lists the buddies of that user ... but I am not sure how I would use that script as a sub-domain as well. for example http://www.domain.com/buddies.php?user=USERNAME Can any one help me out with this? I am really confused. Quote Link to comment Share on other sites More sharing options...
DarthViper3k Posted August 22, 2003 Share Posted August 22, 2003 read the Virtual Hosts tutorial here on this website man that might help some..... but they must be registed with a DNS server to work Quote Link to comment Share on other sites More sharing options...
gizmola Posted August 22, 2003 Share Posted August 22, 2003 Yeah you can\'t get this to work unless the subdomain can be resolved via DNS. What you *could* get working with mod_rewrite would be support for: http://www.yoursite.com/username Quote Link to comment Share on other sites More sharing options...
KNK Posted August 26, 2003 Author Share Posted August 26, 2003 I guess I am going to have o do domain.com/username/ Thanks everyone Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.