Is this possible?

Discussion in 'Apache' started by roadkillu, Mar 8, 2007.

  1. #1
    OK, so I have a site with about 2000 individual hand coded .html pages. We just switched servers and to a new CMS. The problem is that most of the pages are indexed in google like so: www.myurl.com/keyword. That would be fine, except our new CMS gives a 404 for that because it doesn't integrate with the old pages.

    Here is what I am thinking/wondering:

    Is there an easy way to redirect every www.myurl.com/keyword to www.myurl.com/keyword.html

    without doing 2000 lines in my htaccess file?

    Thanks! I'm a salesperson trying to be a webmaster at the same time. Life is tough for me!

    Also, I have some files: www.myurl.com/state where I have pages on the new CMS and DON't want those redirected to the .html. In fact, I've already put in 301's for those www.myurl.com/state/index.html to 301 to www.myurl.com/state
     
    roadkillu, Mar 8, 2007 IP
  2. roadkillu

    roadkillu Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Would something like this work?

    Would this rewrite all my not found urls to the correct .html address?

    Or is this too dangerous?
     
    roadkillu, Mar 8, 2007 IP
  3. roadkillu

    roadkillu Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is a pretty urgent issue for me....if anyone is willing to figure it out, or wants payment, please PM me, and we'll work something out. Thanks!
     
    roadkillu, Mar 8, 2007 IP