Click to See Complete Forum and Search --> : Make Page Redirect Faster


shopkanji
09-01-2004, 07:43 PM
I have a simple question, and I can’t seem to find a simple answer.

I am running an ad campaign on some sites.

To judge how well certain aspects are doing, I have the link from the ad go to an intermediate page, before going to the finial destination.

This intermediate page is just there so I can run a small script counting the people that come through that link.

The thing is, I, and my visitors, don’t want to see the intermediate page.

I want this intermediate page to be unnoticed by my site audience.

I have attempted to accomplish this by setting up a meta tag to redirect after zero seconds:

<<meta http-equiv="refresh" content="0;url=http://www.mysite.com">

This works ok, but I notice that even if I have the rate set at zero seconds, it seems to lag for a couple of seconds doing nothing.

I want a page that immediately loads, and instantly goes on to the next page.

Is there another way of doing this besides redirect?

By the way, my script is an itty-bitty thing, the web page is only a couple lines long, no images load, my server is fast, and the computers I’m testing my site on are fast. I think the delay is a browser penalty for trying to have an instant redirect, is that true?

I can not change the script, or do a count any other way for my needs.

Thanks for any help.

theuedimaster
09-01-2004, 07:47 PM
in php tags at the end of the script put this

header("Location: http://www.pageredirect.com");

ray326
09-01-2004, 11:03 PM
That's because the page has to load before the browser acts on the tag. Respond with an HTTP redirect header from your intermediate script and that will be as fast as you can make it happen.

rsd
09-02-2004, 02:45 PM
Doesn't the company you have the ad campaign with provide you with impression and click through counts? Most do. That would eliminate your need for the redirects.