natesneat2000
Technical User
First, I am a newbie at PHP, else I would try to do this myself. I do have some Perl experioence though.
Basically, a .tk is a free domain that redirects you to your site. The address bar says your .tk location, though.
What I'd like to do is basically take the refferer (which should be the .tk) and strip off any subdomain or directory, and redirect you to the appropraite place.
Examples (please ignore trailing slash or lack thereof):
> (which is what it does now, but the address bar doesn't say so)
VoED.tpcc.tk > tpcc.servehttp.com/VoED
VoED.tpcc.tk/forum/ > tpcc.servehttp.com/VoED/forum/ (optional, but would be nice)
tpcc.tk/VoED > tpcc.servehttp.com/VoED
For bonus points, even let me set "shortcuts" in the script - example:
WFZ.tpcc.tk > tpcc.servehttp.com/Wades_File_Zone/
If anyone could do this, I would truly be most grateful, along with the people who visit my sites and forums!
Basically, a .tk is a free domain that redirects you to your site. The address bar says your .tk location, though.
What I'd like to do is basically take the refferer (which should be the .tk) and strip off any subdomain or directory, and redirect you to the appropraite place.
Examples (please ignore trailing slash or lack thereof):
> (which is what it does now, but the address bar doesn't say so)
VoED.tpcc.tk > tpcc.servehttp.com/VoED
VoED.tpcc.tk/forum/ > tpcc.servehttp.com/VoED/forum/ (optional, but would be nice)
tpcc.tk/VoED > tpcc.servehttp.com/VoED
For bonus points, even let me set "shortcuts" in the script - example:
WFZ.tpcc.tk > tpcc.servehttp.com/Wades_File_Zone/
If anyone could do this, I would truly be most grateful, along with the people who visit my sites and forums!