Migrating Static Site to CMS

Discussion in 'Content Management' started by donnareed, Oct 29, 2005.

  1. #1
    Okay, so I have found a CMS I'm happy with finally (Drupal) and have built a few sites from scratch with it.

    Now I would like to convert some existing static HTML sites to CMS sites. I don't mind copy/pasting the content into the CMS, since they are not super-huge sites, so I don't need a data migration script.

    But some of the old sites have decent page rank, serps and backlinks. I want to keep the same domain name. What is the best way to retain my rankings?

    Normally, if I was converting from html pages to php pages, I would use an htacess redirect:

      Options +FollowSymlinks
     rewriteengine on
     rewriterule ^(.+)\.htm$ http://mydomain.org/$1.php [r=301,nc]
    Code (markup):
    But now, since my CMS has a SEF module to write nice clean URLS with no extensions, like so:

    http://mydomain.org/search-engine-freindly

    How can I do a redirect to something with no filename extension? :confused:

    Any ideas? (One downside with Drupal is less than swift response on the support forums)
     
    donnareed, Oct 29, 2005 IP
  2. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The same way you redirect to something with one? Sorry, not sure how it is different.. that is a valid URL and Apache should be able to redirect to it.
     
    TheHoff, Oct 29, 2005 IP
  3. donnareed

    donnareed Peon

    Messages:
    340
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To clarify, I'm asking this- instead of this line in the redirect:

    rewriterule ^(.+)\.htm$ http://mydomain.org/$1.php [r=301,nc]
    Code (markup):
    I would put what? What would I substitute for the .php? Just omit it after the /$1?
     
    donnareed, Oct 29, 2005 IP
  4. TheHoff

    TheHoff Peon

    Messages:
    1,530
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yup. That would work if your files are:

    http://example.com/get-bent.html

    going to

    http://example.com/get-bent
     
    TheHoff, Oct 29, 2005 IP
  5. donnareed

    donnareed Peon

    Messages:
    340
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks, VB. Easier than I thought it would be.
     
    donnareed, Oct 29, 2005 IP