[PHP] PHP List
I'm wanting to redirect users using a PHP script.
If I use only a .htaccess redirect, it takes approx 1 sec to go to the new URL. However, if I redirect to the following PHP script first, it takes approx 3 seconds to bring up the new URL. The included page_hit_counter.php script gets called for both, so that's not the bottleneck.
Can someone see what the problem might be?
$qs = $_SERVER[QUERY_STRING];
$_REQUEST['seo_redirect'] = $qs;
$parts = explode('/', $qs);
$redirect_url = 'https://www.domain.com/'.$parts.'/product/'.$parts;
header( 'Content-type: text/html; charset=utf-8' );
header( 'Location: '.$redirect_url );
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php