Do you think I'm doing this the best way?

Discussion in 'Apache' started by briandunning, Dec 9, 2005.

  1. #1
    One of my sites has a list of FileMaker Pro custom functions, and the actual URLs are big & ugly like this:
    http://www.briandunning.com/filemaker-custom-functions/detail.php?fn_id=381
    Code (markup):
    I'm using mod_rewrite to redirect them to a friendly URL, since people tend to post and email these pages a lot:
    http://www.briandunning.com/cf/381
    Code (markup):
    This is the code I use to do the rewrite in .htaccess:
    RewriteRule ^cf/(.*)$ /filemaker-custom-functions/detail.php?fn_id=$1 [L]
    Code (markup):
    Note that I'm not sending a 301 or a 302, and I can see by using Firefox that the client receives a 200. My question is pretty general: is there anything wrong with doing it this way, as far as getting the friendly URL indexed? Duplicate content penalty since both URLs still work? Anything else?
     
    briandunning, Dec 9, 2005 IP