1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    61
    Likes Received:
    0
    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:
    61
    Likes Received:
    0
    up ! plase my freinds
     
  3. thuder555

    thuder555 Registered Member

    Joined:
    Dec 10, 2009
    Messages:
    76
    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:
    61
    Likes Received:
    0
    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.