Updated apache rewrites.
  Updated to handle missing IDs.
  perltidy