Shopping Cart Forum

Go Back   eShop Forums - eCommerce Help Forum for Shopping Cart Owners. > Tech Corner > PHP/HTML/CSS/JavaScript and Servers
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
PHP/HTML/CSS/JavaScript and Servers Pick up tips and exchange info on the technical side of having a web presence.

Free £10 High Street Voucher Euroffice Click here!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-09-2007, 12:37 AM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,226
Thanks: 2
Thanked 82 Times in 82 Posts
Default How to perform a HTTP 301 redirect in PHP (Search engine friendly)

A 301 redirect is the most efficient and search engine friendly method for webpage redirection. It will preserve your search engine ranking for that particular page. If you change file names, file locations or even change your domain name it is the safest way to redirect the page while preserving it's pagerank. The code "301" means "moved permanently". If you have a domain that is no longer required with ranked pages then you can use this method to point those pages with rank to pages of another domain.

This is how you do it.

PHP Code:
<?php
header
("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.eshopforums.com/");
exit();
?>
You can change "www.eshopforums.com/" to the domain or page of your choice, though you are welcome to leave it as it is
__________________
Lawrence
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
301 redirect, php


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubimall – http://theubimall.com, a virtual shopping mall Wizard_of_Oz The Water Cooler 1 19-05-2008 08:53 PM
Poop search engine results. Lawrence Chill Out Lounge 2 03-03-2008 10:30 PM
How to 301 redirect non-www URLs to www ones and vice versa using .htaccess Lawrence PHP/HTML/CSS/JavaScript and Servers 0 26-10-2007 02:21 PM
International Search Engine Marketing and Arbitrage SEOBook SEO and PPC 0 29-09-2007 08:25 PM

Google

Edible Graphics, Affordable E-Commerce, Web Shops & Custom Form Scripts
Vista Print
tech news, product reviews, the latest home and business technology, the latest in digital imaging


Content Relevant URLs by vBSEO 3.0.0