Legal Redirect

Discussion in 'White Hat SEO' started by darkknight1947, Jul 15, 2009.

  1. darkknight1947

    darkknight1947 Newbie

    Joined:
    Apr 17, 2009
    Messages:
    27
    Likes Received:
    0
    Hello respectable members,

    I have a doubt in redirecting. Is this code below is a legal redirect from the .htm page to .php page for the same page? That is redirect from

    http://www.example.com/myname.htm
    to
    http://www.example.com/myname.php

    If it is not; please explain in brief...:confused:

    The code is

    <META HTTP-EQUIV="Refresh"
    CONTENT="0; URL=contactus.php">


    Thank you in advance...
     
  2. darkknight1947

    darkknight1947 Newbie

    Joined:
    Apr 17, 2009
    Messages:
    27
    Likes Received:
    0

    Can any one help me out...
    Still waiting!!!!!!!!!
     
  3. aReJay

    aReJay Power Member

    Joined:
    Apr 29, 2009
    Messages:
    735
    Likes Received:
    237
    Location:
    Down under
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=[my-new-page-name].php">
     
  4. rockinrobin

    rockinrobin Junior Member

    Joined:
    Mar 26, 2009
    Messages:
    113
    Likes Received:
    85
    Gender:
    Male
    Occupation:
    Marketing consultant
    Location:
    UK
    Home Page:
    If you want a permanent redirect that tells the search engines that the page has moved for good, you should use the .htaccess file. If you don't have one, create a text file called .htaccess (starts with a dot).

    The file should look like this:
    RewriteEngine on

    Redirect 301 /old.html http://www.mysite.com/new.html


    I see your file extensions are .htm which suggests a windows server - not a good idea. The above works with Apache, any OS as far as I know. The 301 tells the crawler that your page has moved for good. They will update your index and transfer serp rankings to the new page.