Forum Moderators: phranque

Message Too Old, No Replies

Interstitial page prior to .htacess redirect. Can I do this?

         

MisterT

9:42 pm on Mar 5, 2010 (gmt 0)

10+ Year Member



I am currently using some 302 redirects to send traffic out to various affiliate websites.

I would like to test serving up an Interstitial webpage for 2-3 seconds that explains where they are being redirected, and why.

Can I somehow modify an .htaccess redirect to accomplish this? I basically just want to display this page just prior to the redirect. Or should I use a PHP redirect or some other kind?

Any suggestions greatly appreciated. Thank you.

jdMorgan

10:09 pm on Mar 5, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That would depend on how your out-going 302's are currently implemented.

If they're implemented in a script, then do the following in your script. If implemented in .htaccess, then modify the 302 redirects to internal rewrites to a script or an SSI page, passing the redirect-to URL as a query parameter. On this page, take the original redirect-to URL, and set it as a meta-refresh to do a "client-side redirect."

That's a simple solution, and works as long as the client supports the "meta-refresh" function. Otherwise, you could look at that JavaScript/AJAX stuff, which as a server guy, I abhor... :)

Jim