can i set a 301 redirect into a rewrite rule?

Posted by Ali Demirtas on Stack Overflow See other posts from Stack Overflow or by Ali Demirtas
Published on 2010-06-15T18:33:58Z Indexed on 2010/06/15 18:42 UTC
Read the original article Hit count: 231

Filed under:

Can i set a 301 redirect into a rewrite rule?

eg can i set a 301 redirect into this code?

RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E]

© Stack Overflow or respective owner

Related posts about .htaccess