0
Sehores, good afternoon, sir.
I need to change my homepage to a subfolder. I added the following code to my file .htaccess, but only worked for url without www
, ex: dominio.com.br
, redirects to dominio.com.br/webstore
(correct redirect). If typed www.dominio.com.br
, redirect does not work. What I edited was:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^dominio.com.br$ [NC,OR]
RewriteCond %{HTTP_HOST} ^dominio.com.br$
RewriteCond %{REQUEST_URI} !webstore/
RewriteRule (.*) /webstore/$1 [L]
What should I do for the url containing www
also be redirected?
It didn’t work. If I do this, go back to the beginning. What I did and it worked was: Rewritecond %{HTTP_HOST} domino.com.br$ [NC,OR] Rewritecond %{HTTP_HOST} www.dominio.$
– Leibovich
I just don’t know if it’s the right way to go.
– Leibovich
I made the change, it was really incorrect, see if now it will work, anything we can do! rsr
– Bruno Rigolon