I have 3 subdomains , which are based on Opencart.
What I need to force on each domain given language
to do so _GET[‘language’] should be defined strictly for each subdomain
en.handmade24.at -> language=en
ru.handmade24.at -> language=ru
http://www.handmade.24.at -> language=de
I was told .htaccess was a good option to force language variable…
But how can i define the rules? Any help? I am dummy in htaccess…
my Htaccess looks like this
Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "\.(tpl|ini)"> Order deny,allow Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Or maybe you could offer nicer solution?
1 Answer