Re: Location ....

From: Date: Sat, 31 Dec 2005 13:40:07 +0000
Subject: Re: Location ....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228059@lists.php.net to get a copy of this message
Christian Ista escreveu:
Hello, Could you tell me a efficient solution for change page (new location) in PHP? I tried this code : header("Location: mypage.php"); -----
If you are at Apache environment, the best choice is to redirect 301 our 302 via .htaccess. redirect 301 -> for pages/files permanently moved. redirect 302 -> for pages/files temporaly moved. Create one .htaccess ( or edit existing one ) at your root server. Place the code line in the .htacess: redirect 301 /folder_to/old_file.html http://www.yoursite.com/new_file.html For a new redirect, skip one line. Upload the .htaccess and try to reach the old file via browser. ---- zerof

« previous php.general (#228059) next »