I search over the web for this particular problem and didn’t find any good answer. Here is my problem:
When I try this link:
http://www.lempreintedutemps.com/fr/antiquite.html
It correctly redirect to the …/fr/antiquites.html… portion of the website but add all the parameters at the end. I would like them to not appear in the url.
Here is a portion of the .htacces code I use for the site:
RewriteEngine on
redirect permanent /fr/antiquite.html http://www.lempreintedutemps.com/fr/antiquites.html
rewritecond $1 \.(gif¦jpg¦css¦xml)$ [OR]
rewritecond %{REQUEST_FILENAME} -d [OR]
rewritecond %{REQUEST_FILENAME} -f
rewriterule ^(.*) - [S=12]
RewriteCond %{Request_URI} !^.*/fckeditor/.*
RewriteCond %{Request_URI} !^.*/catalogue/.*
RewriteRule ^(.*)/(.*).html /index.php?lang=$1&type=$2&cat=autre [L]
Thank you for your help!
I finaly found the problem, I should never use both redirect permanent and RewriteRule.
Instead of
I used:
And now everything is working.