PDA

View Full Version : How do I redirect pages?



gellnsh
09-03-2004, 12:47 PM
Hello All,

I need some help. I have a bunch of pages that are php and indexed already. I have since changed to a new format and would like the old pages to redirect to the new pages. Can anyone please tell me the proceedure I need to follow to accomplish this task? I would be very appreciative!!

thank you in advance.

PS - yes I have checked the forum and there are snippets of conversations but unfortunately not specific enough for me to follow.

bhartzer
09-03-2004, 02:09 PM
To redirect specific pages (one old page to the new location), you'll need to use a 301 Permanent Redirect (http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=301+Permanent+Redirect).

If you're on a Unix web server, you'll need to use the .htaccess file.

DaButcher
09-07-2004, 03:47 AM
Read this:
http://no2.php.net/header

Also, you can use this script:
http://www.edoceo.com/creo/php-redirect.php

I think what is best, is to make your own redirect function, which is custom to your needs.