Converting Dynamic to static pages

Discussion in 'Search Engine Optimization' started by Ian, Jun 20, 2005.

  1. #1
    Well, it's been nearly a month now since all my dynamic pages lost their titles and descriptions, and I can't seem to get them back no matter what I do. I've implemented a google site map hoping they'd open back up after Google Crawled them again, but still no luck there :( .

    Needless to say I've read about converting them over to static pages and have read that it can be done, however I'm wondering if someone can point out the best way to accomplish this.

    Thanks in advance for your help!

    Ian
     
    Ian, Jun 20, 2005 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Rather than rebuild all of the pages why not use mod_rewrite and make the pages look like they are static with static looking URLs?

    If you need assistance on how to do that I would start with the mod_rewrite rewrite rule generator.
     
    tflight, Jun 20, 2005 IP
  3. webbom

    webbom Well-Known Member

    Messages:
    971
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Yes, indeed the best idea is to use mod rewrite to make your pages look static.
     
    webbom, Jun 20, 2005 IP
  4. Ian

    Ian Well-Known Member

    Messages:
    409
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    125
    #4
    That's exactly what I was looking for. What's the best way to do this when you have 1700+ items you're trying to get to come up in the results? Is there a good way to do a mass mod_rewrite, and if so I'd love to hear your suggestions.

    Thanks for your help!

    Ian
     
    Ian, Jun 20, 2005 IP
  5. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, the idea is to break down your current URLs into parts and then create a "map" of each part. Read up on how to create wildcards with mod_rewrite. A common place you see this is with some of the CMS systems out there. Here is a short example:
    RewriteRule ^displayarticle([0-9]+)-([^\.])+.html$ articles.php?&sid=$1 [L]
    Code (markup):
    In this example a url like /displayarticle142.html or /displayarticle423.html would actually call /articles.php?sid=142 and /articles.php?sid=423 respectively.
     
    tflight, Jun 20, 2005 IP