Oops, I have a website made all of it in wordpress, with some texts directly in the code instead of being by the panel, so I need to create a folder called "en" for the English content. But how do I make someone other than Brazil or Portugal be redirected to awari.com.br/en/?
I created the "en" folder and threw the theme files into it, but it did not work ... Would I have to play wordpress all the way into this folder? Would a WP be within another WP?
My htaccess looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP:Accept-Language} ^en [NC]
RewriteRule ^$ /en/ [L,R=301]
RewriteCond %{HTTP:Accept-Language} ^pt [NC]
RewriteRule ^$ /awari [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(en|pt)/?$ /awari/index.php?lang=$1 [QSA,NC,L]
</IfModule>
# END WordPress
If the person is from Brazil or Portugal, there should be no redirection.