0
I have a domain (www.dominio.com.br) and a subfolder (www.dominio.com.br/folder) and would like to redirect all links from that folder to the domain.
Examples are: www.dominio.com.br/folder www.dominio.com.br/pasta/noticia/nome-da-noticia www.dominio.com.br/folder/contact.php www.dominio.com.br/folder/tag/tag-name www.dominio.com.br/folder/jobs.php
All requested links of "folder" with and without extension, I want to redirect them to the main domain.
How do I do it? And where do I put the . htaccess file?
So I did a test like this: www.dominio.com.br/folder/subfolder redirected the address to: www.dominio.com.br/subfolder
– Victoria Moura
So it worked?
– Giovanni Nunes
No! I was supposed to go home.
– Victoria Moura
Remove the "$1" from the end, it is it that complements the URL. I had understood that you also wanted to translate the accesses.
– Giovanni Nunes
It worked out! Thank you so much.
– Victoria Moura