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. Link to comment https://forums.phpfreaks.com/topic/921-mod_rewrite-help-sub-domain-point-to-php-script/ 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 Link to comment https://forums.phpfreaks.com/topic/921-mod_rewrite-help-sub-domain-point-to-php-script/#findComment-3112 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 Link to comment https://forums.phpfreaks.com/topic/921-mod_rewrite-help-sub-domain-point-to-php-script/#findComment-3120 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 Link to comment https://forums.phpfreaks.com/topic/921-mod_rewrite-help-sub-domain-point-to-php-script/#findComment-3188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.