Jump to content

Mod_rewrite help: sub-domain point to php script


KNK

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:

Archived

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

×
×
  • Create New...

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.