help me how to redirect this page

Discussion in 'White Hat SEO' started by techwap, Aug 12, 2010.

  1. techwap

    techwap Registered Member

    Joined:
    May 22, 2010
    Messages:
    71
    Likes Received:
    2
    Gender:
    Male
    Hi

    google index my page linke that

    h t t p : / / w w w . example .com / cat-7-p1.html?cat=42&page=1

    and i want it to be like that

    h t t p : / / w w w . example .com /cat-7-p1.html

    what is the 301 code in htaccess?
     
  2. techwap

    techwap Registered Member

    Joined:
    May 22, 2010
    Messages:
    71
    Likes Received:
    2
    Gender:
    Male
    up ! plase my freinds
     
  3. thuder555

    thuder555 Registered Member

    Joined:
    Dec 10, 2009
    Messages:
    92
    Likes Received:
    5
    Code:
    [B]ColdFusion Redirect[/B]
    
      <.cfheader statuscode="301" statustext="Moved permanently">
      <.cfheader name="Location" value="http://www.new-url.com">  
    
    php redirects
    <?
        Header( "HTTP/1.1 301 Moved Permanently" ); 
        Header( "Location: http://www.new-url.com" ); 
    ?>  
    
     
  4. techwap

    techwap Registered Member

    Joined:
    May 22, 2010
    Messages:
    71
    Likes Received:
    2
    Gender:
    Male
    thanks foe help

    but i need it in htaccess
     
  5. chockomonkey

    chockomonkey Regular Member

    Joined:
    Mar 27, 2009
    Messages:
    366
    Likes Received:
    40
    Location:
    the States
    Google always works like a charm....

    Code:
    http://www.lmgtfy.com/?q=htaccess+redirect
    But since no one likes using that:
    Code:
    http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F
    this looks like a good resource, scroll down until you find the one which matches your situation.