How do I get the url to stay the same when using a redirect script?
View Single Post
04-03-2009, 02:51 PM
Join Date: Mar 2009
Location: Springfield, IL USA
The only thing I can suggest is try it, and see. If you're able to get it to do what you want and without possibility of abuse, then that's wonderful. However, if it doesn't work in the way as expected, always know there are other options available.
What I'd suggest doing is setting up a redirect script with HTTP REFERER, and sends 301 header (codes are a few posts back) and then ask someone here to put up a test page on their site and link to your redirect script using their page and see what info you get from it.
Member XYZ creates a page on his/her domain called redirect-test.htm
On that page they put a link to: your-domain.com/redir.php?site=XYZ.com/redirect-test.htm
You can visit the page on their site and click the link, so can they.
Then you'd have to check your log files / AWStats (or whatever you use) to see where the access to the script came from. It'd show you one of two sources : 1- That it came from an external website (or) 2- That it came from your own website.
It's worth giving it a shot. Please do update here once you've tested because I am interested to know too.
View Public Profile
Send a private message to WebSavvy
Find More Posts by WebSavvy