Forum Moderators: phranque

Message Too Old, No Replies

I can't believe I've never encountered this . . .

maybe someone has

         

rocknbil

1:57 am on Jan 20, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



With the help of some of the gurus here I've done lots of rewrites, but have never encountered this specific situation.

It starts with taking an old site and redirecting it's pages to pages on the new site without losing P.R. Easy enough, external rewrite, 301. But . . . . there is a legal requirement that there be an "interim" page with a "why you are here" message.

Referrer is not available in a rewrite as that is sent from a browser. I can't see any other way to "get" that the inbound request comes from the old server other than tagging it with a query string, which changes the nature of the link and is counter to the idea of the redirect (i.e., widget.html -> new-widget.html, not new-widget.html?somevars=somevals.)

We can't interfere with current site pages, and can't create duplicate placeholders to direct to. If I can detect the inbound comes from server A, I can read in/output pages with a message just for those visitors, leaving the pages intact.

I thought this should be simple, but I'm not seeing it. Any ideas?

jdMorgan

9:08 pm on Jan 24, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...How about #including an on-page "why-you-are-here-message page-body header section" on the new-site pages and then setting a "why-you-are-here-message has already been presented" cookie to suppress it?

If necessary, the "why-you-are-here" message can completely overlay the page, and present a link to the page itself. Since the cookie will be set on the initial page-view, clicking the self-pointing link will then result in the page being presented without this overlay.

The page will have to marked as non-cacheable when the page-header message is included (and equivalently, when the cookie is not already set) for this to work.

Also, you'll likely want to by-pass presenting the "why you are here" message/overlay and cookie if the client is a search engine spider.

Jim