Jump to content

Archived

This topic is now archived and is closed to further replies.

KNK

Mod_rewrite help: sub-domain point to php script

Recommended Posts

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. :cry:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I guess I am going to have o do domain.com/username/ :(

 

Thanks everyone :)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.