Options +FollowSymLinks RewriteEngine on #RewriteCond %{HTTP_HOST} ^thiagosantos.web.br.com [NC] #RewriteRule ^(.*)$ http://www.thiagosantos.web.br.com/$1 [L,R=301] #RewriteRule ^teste/(.*)$ teste/$1 [L] #RewriteRule ^(.*)$ teste/$1 [L] #RewriteCond %{HTTP_HOST} ^thiagosantos\.web\.br\.com$ #RewriteRule ^(.*)$ http://www.thiagosantos.web.br.com/$1 #RewriteCond %{HTTP_HOST} ^www.thiagosantos.web.br.com [NC] #RewriteRule ^.*(LojaMagento/?)$ http://thiagosantos.web.br.com/$1 [R=301,QSA,L] #RewriteCond %{HTTP_HOST} ^thiagosantos.web.br.com [NC] #RewriteRule ^.*(teste)$|^.*(teste/)$ http://thiagosantos.web.br.com/$1 [R=301,QSA,L]