Re: 301 redirect

From: Date: Sat, 30 Aug 2008 13:05:48 +0000
Subject: Re: 301 redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279075@lists.php.net to get a copy of this message
On 30 Aug 2008, at 13:42, Feris wrote:
Is it possible to do permanent redirect (301) with php ? If possible... which is more efficient, by using .htaccess or php redirect ?
If using PHP 4.3 or above... header('Location: http://website.com/some/page.html', true, 301); See http://php.net/header for more details. Anything that happens before PHP gets invoked will be more efficient since it doesn't involve invoking PHP, but for most setups the difference will be negligible. -Stut -- http://stut.net/

« previous php.general (#279075) next »