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.

Using mod_rewrite

Discussion in 'Apache' started by protesto, Mar 4, 2005.

  1. #1
    Hi,

    I'm using mod_rewrite on my phpbb forums. All viewtopic pages looks like html pages with the same word in the URL and all these pages are indexed by google. Now I've found a new mod_rewrite mod which turn URLs into keyword phrases, such as the topic and forum titles. I think this is a great way for SEO.

    So, if a replace it with this new mod, all pages indexed by google will be not accessable anymore. Does anybody have a solution for this?
     
    protesto, Mar 4, 2005 IP
  2. mortgage-pro-seo

    mortgage-pro-seo Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hiya Protesto,

    I have been looking for the same solution myself.
     
    mortgage-pro-seo, Mar 5, 2005 IP
  3. piniyini

    piniyini Well-Known Member

    Messages:
    514
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Care to tell us where we can find this?
     
    piniyini, Mar 5, 2005 IP
  4. mortgage-pro-seo

    mortgage-pro-seo Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Piniyini check it out here.

    I personally have not used this.
     
    mortgage-pro-seo, Mar 6, 2005 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #5
    You can leave the .htaccess with the old code as well as the new. This will mean old style requests will be served with pages with the new style content/links.

    The only problem would be if they both had the same regular expression which is unlikely given the radically different approaches.

    At worst, you could do a total change and on the first pass the bots would find a stack of 404s and a stack of new content and your server would get a hammering. There might be a slight dip in SERPs but you'd be back in no time. Might pay to make your 404 page a site map ;)

    Sarah
     
    sarahk, Mar 6, 2005 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #6
    Another reason to do this is to support any other sites or forum postings that link to your site.

    Sarah
     
    sarahk, Mar 6, 2005 IP
  7. protesto

    protesto Peon

    Messages:
    140
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks for your anwers.

    If I will leave the old ones, there will be 2 different URL's. Which one will google choose for indexing?

    This was the old one:
    RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
    PHP:
    Here is the new code:
    RewriteRule [.]*-vp([0-9]*) viewtopic.php?%{QUERY_STRING}&p=$1 
    PHP:
    I'm not sure that both of them will work at the same time.
     
    protesto, Mar 6, 2005 IP
  8. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #8
    No, Google will see them as duplicate content and may list both for a time.

    I don't know how it decides when / if to swap them over but all new threads will only be known by the new format.

    I imagine that deciding factors of which to list would be the number of pages linking to it (new format wins) and age of the page (old format wins).

    Ultimately you should pick the one which will serve you better in the long run, be brave and go for it.

    Sarah
     
    sarahk, Mar 6, 2005 IP
  9. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #9
    I think this hack wont work. Now phpbbhacks have removed the download link. :confused:
     
    Tuning, Mar 10, 2005 IP
  10. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #10
    Shame, it looked good :)
     
    sarahk, Mar 10, 2005 IP
  11. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #11
    J.D., Mar 10, 2005 IP
  12. mortgage-pro-seo

    mortgage-pro-seo Peon

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
  13. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #13
    sarahk, Mar 10, 2005 IP
  14. Tuning

    Tuning Well-Known Member

    Messages:
    1,005
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    138
    #14
    Yep, its working fine. But there was some problem with some skins. I could make it work on subsilver and icgstation templates.

    Also for more SEO purposes, you can tweak viewforum,viewtopic,overall-header files to make the page title instead of mydomain.com::forum:topic.

    Regards,
    Tuning
     
    Tuning, Mar 12, 2005 IP