Elxis CMS Forum
Support => Language => Topic started by: dados on October 22, 2010, 00:03:46
-
Hi, I have use Brasilia files and change it to be for Portuguese language I use PSPad Editor and save it with instruction from forum.. And everything is Okay but when I on SEO Pro I get some errors for example.. I can change it to Spanish and it read English but when I click on Portugal I get nothing its back to English again... Please see http://www.ebi-travel.com for better understand... Thanks
-
On the htaccess.txt file that you have renamed to .htaccess do these steps below :
1. Disable SEO PRO from General Configuration of Elxis.
2. Rename the .htaccess file to htaccess.txt and download via FTP program like Filezilla.
3. Open the htaccess.txt.
Line 42 change :
#RewriteRule ^([pt\-BR]{5})/(.*)$ /index.php?mylang=brazilian [QSA,L]
to :
RewriteRule ^([pt\-BR]{5})/(.*)$ /index.php?mylang=brazilian [QSA,L]
4. Save the file and upload it to your server.
5. Rename again to .htaccess
6. Enable SEO PRO.
-
Thanks its work now but I did not use brasilian, I just use this files. and import this in htaccess
RewriteRule ^([pt]{2})/(.*)$ /index.php?mylang=portuguese [QSA,L]
Also I import in
RewriteCond %{QUERY_STRING} !mylang=[arabic|armenian|bosnian|creole|croatian|danish|dutch|english|french|german|greek|hebrew|indonesian|italian|japanese|latvian|lithuanian|persian|polish|portuguese|romanian|russian|serbian|spanish|srpski|turkish|vietnamese]{2,}
and now works.. Just to ask did I do it right solutions?
And why brasilian have ([pt\-BR]{5} this number 5 and other have 2
-
{x} is an htaccess rule
{5}: the string should have exactly 5 characters
{5,}: the string should have at least five characters
-
Thank you...