ReWriteRule in .htaccess file causes Internal Server Error

Discussion in 'Programming' started by terrymason, Aug 31, 2011.

  1. #1
    I've got a few of these in my .htaccess file

    RewriteRule ^buy-(.*)_(.*)_com.html$ http://www.amazon.com/exec/obidos/ASIN/$2/xxx/ [R,L]
    Code (markup):
    This works fine in Apache 1.3 or 2.0, but when upgrading to 2.2 it produces an internal server error. Does anyone know how to correct this code to make it compatible with apache 2.2?

    Thanks
     
    terrymason, Aug 31, 2011 IP