I am using Transposh plugin to make my site bilingual. Unfortunately, despite having English as the default language and therefore available at example.com/xxx
, Google is indexing example.com/en/xxx
.
Until the plugin gets a fix, I am trying to use RedirectMatch
to tell Google to index the root folder, not the /en/
subdirectory.
This is what I have in my .htaccess
file in the site root directory, as well as in the .htaccess
file in the /wordpress/
subdirectory where the WordPress installation is (as I am not sure where to put it!).
RedirectMatch 302 ^/en/$ /
Is this the correct method and syntax? It does not seem to be working.
FYI the complete .htaccess
file in the root directory is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RedirectMatch 302 ^/en/$ /
# END WordPress