I have a problem with some redirections in a site when creating a redirection of a
<etiqueta>.html to a
<categoria>/ . The problem is that you drag the variable.
<etiqueta> s are a predefined list by me (it's not any text).
Original URL in the request:
URL to which you must redirect:
And you must rewrite it to access the resource (eliminating all the GET parameters that you might have) to:
and I want it to be:
The htaccess code to create the rewrite mod I'm using is:
Rewriterule ^videos/(.*)_(.*).html$ index.php?tag=$1&page=$2 [L,NC] Rewriterule ^videos/(.*).html$ index.php?tag=$1 [L,NC] Rewriterule ^gratis-(.*).html$ index.php?page=$1 [L,NC] Rewriterule ^gratis/(.*)/(.*)/$ index.php?cat=$1&page=$2 [L,NC] Rewriterule ^gratis/(.*)/$ index.php?cat=$1 [L,NC]
and to create the 301 redirect I'm using:
redirect 301 /videos/coches-electricos.html https://www.dominio.com/gratis/coches-electricos/