Topic awaiting preservation: URls pointing to diffrent directorys (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: |
posted 04-07-2003 20:11
Ok... I know what I wanna know, just not how.. to explain |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 04-07-2003 20:23
Trigger: It depends on what your hsoting is on (sounds like Apache) but it pos. sounds like a job for mod_rewrite and/or a few configuration tweaks in your htaccess (although I can't be too sure). |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-07-2003 20:32
sure easy enough in PHP $_SERVER['HTTP_HOST'] or (deprecated) $HTTP_SERVER_VARS['HTTP_HOST'] |
Paranoid (IV) Inmate From: |
posted 04-07-2003 20:48
Thank you both |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-07-2003 20:51
Well I'm going to add a caveat which is that it depends on how the forwarding is done. (the orginal request headers have to be sent) but it should work |