Can I use the word redirect in every sentence? Let's find out.
July 31, 2006 7:22 AM
Subscribe
Is there a way that I can tell if a page has been redirected by conf.d or .htaccess?
I'm about to release a redesigned website and the structure is so different (and the website so large) that I have over 500 redirects to be put in either an .htaccess or conf.d file.
Since .htaccess and conf.d redirects don't notify the user that they're being redirected, I'd like to be able to pull something (perhaps from the HTTP Referer?) to say "if page is redirected, print div to say change your bookmarks."
Anyone know how to do this?
p/s. I've accomplished redirect notifications on 404 pages with mod rewrite, but since there are so many in this case, I want to avoid skewed 404 results in our site statistics.
posted by 10ch to technology (7 comments total)
2 users marked this as a favorite
E.g.:
Redirect 301 /oldpage.html http://www.example.com/newpage.php?redirect=1
posted by justkevin at 7:35 AM on July 31, 2006