Detect if an old URL was used to reach the page
-
I’m trying to determine if someone reached my page using the old URL structure or not.
Old URL = example.com/?p=100
New URL = example.com/2013/10/14/sample-postIf someone visits my site using the old URL they are redirect to the new URL as expected. I would like to know that they originally hit the page using the old (original) URL and display a message to change their bookmark.
The usual situation is that my folks have the old URL bookmarked, so using $_SERVER[‘HTTP_REFERER’] simply comes up empty.
If they have clicked on a link on a page it comes up with the appropriate refferer information and not that they used the old URL.
Any ideas?
- The topic ‘Detect if an old URL was used to reach the page’ is closed to new replies.