0
I need to redirect the following link:
http://dominio.com/receitas-user/ID_do_usuario/nome_do_usuario
To:
http://dominio.com/receitas/author/nome_do_usuario
Being nome_do_usuario
and ID_do_usuario
two variables.
I tried to do it this way but it didn’t work:
RewriteCond %{QUERY_STRING} !=""
RewriteCond %{QUERY_STRING} ^/receitas-user/([0-9-a-z\-]+)/([0-9-a-z\-]+)$ [NC]
RewriteRule ^(.*)$ http://dominio.com/receitas/author/%2? [R=301,L]
I don’t know much about htaccess, but I can guess what you’re using
%{QUERY_STRING}%
in the wrong place.– Wallace Maxters
Related: https://answall.com/questions/131751/redirecionar-pelo-htaccess
– Wallace Maxters
Possible duplicate of URL friendly, how to make it work with HTACCESS
– Jeferson Almeida
I don’t understand much either, buddy :\
– free4k