The following applies only to Elxis 2008.1Elxis 2008.1's htaccess is diferrent than the 2008.0's.Sites on www root folderJust rename it to .htaccess and you are ready. Sites on sub-directoriesIf you are on a sub-directory then you have to do some changes to the htaccess file (not tested on real environment yet).Suppose your installation is accessible from the web like this: http://www.mysite.com/elxis/First of all set properly the Rewritebase.RewriteBase /elxis/Test if it works, if not, then for each of the language re-write rules add the subdirectory name to the url:from:RewriteRule ^([hy]{2})/(.*)$ /index.php?mylang=armenian [QSA]to: RewriteRule ^([hy]{2})/(.*)$ /elxis/index.php?mylang=armenian [QSA] Once again, Elxis is a CMS, meaning that is a site itself. We do not recommend installing Elxis on sub-folders.
PHP Built On: Linux ks-net.gr 2.6.22.1-27.fc7 #1 SMP Tue Jul 17 17:13:26 EDT 2007 i686Database Version: mysql 5.0.37 (Version: 5.0.37)PHP Version: 5.2.2Web Server: Apache/2.2.0 (Fedora)Web Server to PHP interface: apache2handlerVersion Elxis 2008.1 Stable rev2204 [ Nemesis ] 29-September-2008 21:16 GMT+2
RewriteBase /subfolder/
RewriteCond %{QUERY_STRING} !mylang=[armenian|bosnian|brazilian|creole|croatian|danish|english|french|german|greek|indonesian|italian|japanese|latvian|lithuanian|persian|russian|serbian|spanish|srpski|turkish|vietnamese]{2,}RewriteRule ^([hy]{2})/(.*)$ index.php?mylang=armenian [QSA]RewriteRule ^([bs]{2})/(.*)$ index.php?mylang=bosnian [QSA]# RewriteRule ^([pt\-BR]{5})/(.*)$ index.php?mylang=brazilian [QSA]RewriteRule ^([ht]{2})/(.*)$ index.php?mylang=creole [QSA]RewriteRule ^({2})/(.*)$ index.php?mylang=croatian [QSA]RewriteRule ^([da]{2})/(.*)$ index.php?mylang=danish [QSA]RewriteRule ^([en]{2})/(.*)$ index.php?mylang=english [QSA]RewriteRule ^([fr]{2})/(.*)$ index.php?mylang=french [QSA]RewriteRule ^([de]{2})/(.*)$ index.php?mylang=german [QSA]RewriteRule ^([el]{2})/(.*)$ index.php?mylang=greek [QSA]RewriteRule ^([id]{2})/(.*)$ index.php?mylang=indonesian [QSA]RewriteRule ^([it]{2})/(.*)$ index.php?mylang=italian [QSA]RewriteRule ^([ja]{2})/(.*)$ index.php?mylang=japanese [QSA]RewriteRule ^([lv]{2})/(.*)$ index.php?mylang=latvian [QSA]RewriteRule ^([lt]{2})/(.*)$ index.php?mylang=lithuanian [QSA]RewriteRule ^([fa]{2})/(.*)$ index.php?mylang=persian [QSA]RewriteRule ^([ru]{2})/(.*)$ index.php?mylang=russian [QSA]RewriteRule ^([sr]{2})/(.*)$ index.php?mylang=serbian [QSA]RewriteRule ^([es]{2})/(.*)$ index.php?mylang=spanish [QSA]# RewriteRule ^([sr\-Cyr]{6})/(.*)$ index.php?mylang=srpski [QSA]RewriteRule ^({2})/(.*)$ index.php?mylang=turkish [QSA]RewriteRule ^([vi]{2})/(.*)$ index.php?mylang=vietnamese [QSA]
RewriteRule ^([en]{2})/(.*)$ index.php?mylang=english [QSA]
RewriteRule ^([en]{2})/(.*)$ /index.php?mylang=english [QSA]