Hi all.
Is it possible and how to find out the URL that was submitted by a user that sends them to my index pgae.
Example:
if a user types in "http://retail.mydomain.com" can I capture that information to redirect them to another page.
Not with just PHP - you'd need to look into Apache's .htaccess specifications - probably something using regular expressions to get all the parts of the request, then pass them to a PHP script to track what gets submitted and redirect them.
Hi and thank you for your reply.
I will do as you say and look into the Apache' side for a result.
What exactly are you trying to do? Redirect? Find out where they're coming from?
Hi BlueKai
I am trying to do both.
If they come from URL 1, redirect to page x
else
if they come from URL 2, redirect to page y.
You can do this with JUST mod_rewrite in an Apache .htaccess file. You wouldn't even need PHP, if you don't want to track them.
http://www.webweaver.nu/html-tips/web-redirection.shtml