Do I need to do a 301 redirect after creating SEO links?

Discussion in 'Apache' started by dinki, Feb 11, 2010.

  1. #1
    Hey guys, I'm a bit confused. Here's what I did for one of my sites (a joke site):

    old url format:
    http://www.mysite.com/jokes/30.php

    new url format after using mod rewrite rules in .htaccess:
    http://www.mysite.com/jokes/30-The_Lawyer_and_the_engineer_joke.php


    Now this works fine for all my joke pages. I'm pulling the joke title out of the database and adding it to the jokeid.

    The question I have is do I need to somehow do a 301 redirect for all requests coming in from:

    http://www.mysite.com/jokes/30.php

    and send them to:

    http://www.mysite.com/jokes/30-The_Lawyer_and_the_engineer_joke.php

    I'm concerned that I will be penalized for duplicate content. Is that true? If I do have to use a 301 redirect, can someone tell me how I can do this using the example urls I've mentioned above? I've tried a few things on one page but haven't had any success. I guess I can make one entry per url in the .htaccess file?

    Any help would be greatly appreciated. Thanks.
     
    dinki, Feb 11, 2010 IP