I have a site that is actually a multisite using subdomains and I would like to remap the subfolder translations to a sub domain.
domain.com (main site)
blog.domain.com (mu site for the blog)
With WPML, I have:
domain.com/fr/ (for the French translation)
blog.domain.com/fr/ (for the French translation)
I would like to have the following:
domain.com/fr/ --> fr.domain.com
blog.domain.com/fr/ --> blogue.domain.com
I think this could be possible with Rewrite rules, but I can’t get it to work properly.
Here is the current default WordPress MU .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*.php)$ $1 [L]
RewriteRule . index.php [L]
Many thanks for your help!
Keep your .htaccess like this:
You can add to .htaccess: