php - The best way to do a 301 redirect with a delay of several seconds? -
what best way 301 redirect delay of several seconds? want original page displayed 5-10 seconds , 301 redirect site. i've found lot of solutions in php on google 1 found delay didn't display original page before redirecting—only empty screen.
you can't true 301 redirect delay. http stateless. "301 redirect", want if you're trying make google happy; client sends request, , status code on reply server 301, part of reply you'll use location header , tell new content is. if don't have that, you're not doing 301 redirect.
with other answer, you're doing meta refresh on client side, google not like.
this how 301, , user doesn't see old page @ all, , have no idea they've been redirected.
$location="http://www.yoursite.com/newpage"; header ('http/1.1 301 moved permanently'); header ('location: '.$location);
Comments
Post a Comment