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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php