Posted by zerof on 12/31/05 15:40
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
Navigation:
[Reply to this message]
|