Greetings,
I need your advice.
I implemented the rewrite mod for the articles, switching from a dynamic url to a static url like this:
RewriteRule ^([^/]+)/([^/]+).htm /testo.php?Id=$1&nomefile=$2 [L]
Everything works fine, but there is a problem when I do a redirect 301 like this:
Redirect 301 /11/pippo.htm /11/super-pippo.htm
i.e. redirect 301 from https://www.sito.it/11/pippo.htm to https://www.sito.it/11/super-pippo.htm
Well in this case it also brings the variables with it and I get this wrong link:
https://www.sito.it/11/super-pippo.htm?Id=11&nomefile=pippo
instead it should be:
https://www.sito.it/11/super-pippo.htm
I'm definitely missing something at the moment, if possible I'm waiting for your professional support.
Thank you
What I have tried:
Resolve problem Redirect 301 that generates incorrect static URL with variables