help me in redirect 301 ...

Discussion in 'Search Engine Optimization' started by m7shsh, Jun 5, 2008.

  1. #1
    hi
    i have more than 10 pages
    i want to redirects all pages
    for example this is the links for pages
    www.my.com/articles.php?action=show&id=12

    www.my.com/articles.php?action=show&id=13

    www.my.com/articles.php?action=show&id=14

    ====

    firest link i want to redirect to www.my.com/messenger

    seconde link i want to redirect to www.yahoo.com

    third link i want to redirect to www.msn.com

    how ?


    i use this code i htaccess

    [FONT=Arial, Tahoma, Helvetica, sans-serif]
    [/FONT]

    [FONT=Arial, Tahoma, Helvetica, sans-serif]but i dosenot redirect :([/FONT]

    [FONT=Arial, Tahoma, Helvetica, sans-serif]can you help me please :)[/FONT]
     
    m7shsh, Jun 5, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're going to have to use mod_rewrite to remap your URLs so they are search engine friendly, then use the 301 redirect to point the current URLs to their new "rewritten locations" so they don't lose their rankings or PageRank. Please understand that you may experience a temporary drop in your rankings, but this will be minor and should go away in a few days to a week, depending on how often your site's pages get crawled.

    The Apache 1.3 URL Rewriting Guide should be a good enough primer on how to rewrite URLs dynamically: http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
    Here's the Apache 2.0 version: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
    And the Apache 2.2 version: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html

    And here's how you redirect one page to another:

    
    Redirect 301 /oldpage.html http://www.example.com/newpage.html
    
    Code (markup):
    For more information, check out these resources:
    http://www.webweaver.nu/html-tips/web-redirection.shtml
    http://www.isitebuild.com/301-redirect.htm
    http://www.webconfs.com/how-to-redirect-a-webpage.php
    http://en.wikipedia.org/wiki/URL_redirection
     
    Dan Schulz, Jun 6, 2008 IP