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.

Mod rewrite help dynamic urls index by Google

Discussion in 'Apache' started by fzx5v0, Nov 8, 2005.

  1. #1
    Hi
    I just can not get my head around mod rewrite I either get 200 where i have not matched properly or server error. I have read books on general expressions and on mod rewrite and all the recommended reading but still I can not get them to work with out help. Please can someone advise on this. Thanks
    301 redirect
    www.mydomain.co.uk/product_info.php?manufacturers_ id=10&products_id=98&language=en

    to

    http://www.mydomain.co.uk/product_info.php/products_id/112

    the reason is that google has index all my dynamic urls

    thanks in advance
     
    fzx5v0, Nov 8, 2005 IP
  2. RyanBlank

    RyanBlank Guest

    Messages:
    93
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if they have indexed your url's, then what's the problem?
     
    RyanBlank, Nov 8, 2005 IP
    just-4-teens likes this.
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    Change the URLs now and you'll have a duplicate content problem.
     
    Nintendo, Nov 8, 2005 IP
  4. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i agree, if google has indexed them then why worry about it?
     
    just-4-teens, Nov 8, 2005 IP
  5. fzx5v0

    fzx5v0 Guest

    Messages:
    188
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    because I have a duplicate content problem

    Thanks
     
    fzx5v0, Nov 9, 2005 IP
  6. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #6
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^product_info.php?manufacturers_ id=10&products_id=([^.]+)&language=en$ http://www.mydomain.co.uk/product_info.php/products_id/$1 [R=301,L]

    if the manufacturers ID changes, then that also has to be in the new URL some where.
     
    Nintendo, Nov 9, 2005 IP
  7. seodelhi

    seodelhi Active Member

    Messages:
    882
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    70
    #7
    I have a site in which i use following format in the URL, the following is basically a search page, i have around 20, 000 pages in my site like this, i want to rewrite these pages into static looking url's, how can i do this???

    Anybody has some ideas.

    thanx in advance.

    a.b.com/xyz/ab_z.php?file=290905001957&d=toppage&e=&i=&searchdoc=home&sortsource=rel&phrase=market
     
    seodelhi, Nov 11, 2005 IP
  8. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #8
    How much of that URL changes? Only 290905001957? The less that changes, the shorter the URL can be.
     
    Nintendo, Nov 11, 2005 IP
  9. yulia

    yulia Peon

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Btw, anyone know any good website to explain about mod_rewrite or how httacess works?
    I really need that info and I;ve tried to google it but still got no good web reference
     
    yulia, Nov 11, 2005 IP