1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Changing url patterns (many pages involved)

Discussion in 'Apache' started by Liminal, Jul 31, 2005.

  1. #1
    Hello All,

    Having to change the URL patterns of my 20k pages already indexed by Google, would the setup below be the optimal way of doing things? Will I lose some Google traffic initially when I implement the changes (most of the current URLs have a non-zero PR)?

    Thanks!
    James

    Current setup:

    www.example.org/articlelist and www.example.org/articlelist/id/<articleid>
    RewriteRule ^articlelist$ /view-articles.php?id=all [L,NC]
    RewriteRule ^articlelist/id/([0-9]+)$ /view-articles.php?id=$1[L,NC]

    Proposed setup:

    www.example.org/articles and www.example.org/articles/<articleid>/Learn-About-Blue-Widgets
    RewriteRule ^articlelist$ /articles[R=301,PT]
    RewriteRule ^articles$ /view-articles.php?id=all [L,NC]

    RewriteRule ^articlelist/id/([0-9]+)$ /articles/$1 [R=301,PT]
    RewriteRule ^articles/([0-9]+) /view-articles.php?id=$1 [L,NC]
     
    Liminal, Jul 31, 2005 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    I think doing a 301 redirect from the old URLs to the new ones will make Google update its listings. Or you can make both old URLs and new URLs work and change the links to the new URLs and once Google updates the listings to show the new URLs, delete the mod_rewrite code for the old URLs.
     
    Nintendo, Aug 1, 2005 IP
  3. blacknight

    blacknight Well-Known Member

    Messages:
    254
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    125
    #3
    If the content is identical Google could penalise you for having both sets.
     
    blacknight, Aug 1, 2005 IP
  4. Liminal

    Liminal Peon

    Messages:
    1,279
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Liminal, Aug 1, 2005 IP