Rewrite issue with .htaccess

Discussion in 'Apache' started by Pieterk, Aug 27, 2010.

  1. #1
    Hi,

    I used to have a rewrite rule like this for over a year:

    RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]

    Recently I changed it to:

    RewriteRule ^produkten/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]

    The problem is that the old URL's with product/ in it are still in the Google index, so I want to redirect /product to the new /produkten.

    I tried this:

    Redirect 301 http://www.mywebsite.com/product/myproduct.html http://www.mywebsite.com/produkten/myproduct.html

    But that doesn't work!
     
    Pieterk, Aug 27, 2010 IP