I have a domain (www.dominio.com.br) and a subfolder (www.dominio.com.br/pasta) and would like to redirect all the links of this folder to the domain.
Examples: www.dominio.com.br/pasta www.dominio.com.br/pasta/noticia/nome-da-noticia www.dominio.com.br/pasta/contato.php www.dominio.com.br/pasta/tag/nome-da-tag www.dominio.com.br/pasta/trabalhos.php
All requested links in the "folder" with and without extension, I want to redirect them to the main domain.
How do I? And where do I put the .htaccess file?