I have this site: neotel2000.com that works this way:
- Spanish language: neotel2000.com
- English language: neotel2000.com/en/
- French language: neotel2000.com/fr/
OK.
I need this:
I want that every possible section relative to the French version (/fr/), it will redirect (301) to the root domain (neotel2000.com). Example:
neotel2000.com/fr/whatever/ -----> neotel2000.com
Although, there are some exceptions (i.e. there are 7 urls relatives to /fr/ where the 301 redirect should not apply) I'll show you one of these url exceptions:
https://www.neotel2000.com/fr/standard-virtuel/
So far I´ve searched dozens of psots here and other forums with no luck.
Here my .htaccess file:
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} !^GET\ ./https://www.neotel2000.com/fr/.*\ HTTP
RewriteCond %{THE_REQUEST} !^GET\ ./https://www.neotel2000.com/fr/standard-virtuel/.*\ HTTP
RewriteRule ^fr(.+)/ / [R=301,L]
</IfModule>
Thank you loads