|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
If you don't know what a PHP 301 redirect is, you will by the end of this thread! If you need to redirect a page, unfortunately it isn't as simple as using one of the various methods - only the 301 redirect will preserve search engine rankings for the page. It is the most efficient, search engine friendly method for website redirection - the code 301 is interpreted as "moved permanently".
Code:
<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?> |
| Sponsored Links |
|
|
|
|||||
|
Yes you should. Otherwise the server doesn't know why the forward is there. 301s are important so you should take the time to add the extra line.
__________________
Vote for Code Call and your other favorite Webmaster Forums iTamer Web Development Blog |
|
|||
|
Quote:
I just used the word "ultimate" as it is the only thread you will need to learn how to do a 301 redirect in that particular language ![]() |
| Sponsored Links |
|
|
|
|||
|
I use a .htaccess for my redirections.
It's simple to use and I have to edit only one file for an entire folder ![]()
__________________
Remember, pillage first then burn. Random stuff - My blog. SciFanTalk.com - Sci-Fi and Fantasy fans are welcome. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Ultimate ASP/ASP.net 301 direct/forwarding thread! | Dan | ASP, ASP.NET and Coldfusion | 3 | 01-08-2007 03:33 PM |
| The Ultimate Codefusion 301 direct/forwarding thread! | Dan | ASP, ASP.NET and Coldfusion | 0 | 06-28-2006 09:28 PM |
| The Ultimate HTML/xHTML/DHTML 301 direct/forwarding thread! | Dan | HTML Programming | 0 | 06-28-2006 08:58 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%