Make Domain With Specific Language

Hi to all
I want define a new domain for other language
for example: http://myjournal.com/en for ENGLISH language
http://myjournal.com/ar for arabic language
i know that when i want load a page with above language i should send get request like that

http://myjournal.com/index.php/test/user/setLocale/en_US?source=%2Findex.php%2Ftest%2F

Do you have any idea for htaccess code or rewrite code to solve my problem
share please
thanks in advanced

This is more of a server configuration question than a OJS/PKP question, but here is a broad overview:

This would probably look like testing whether the OJS session cookie already exists:

(Find the cookie name in config.inc.php)
If it does not already exist for the request, perform a 301 redirect to setLocale URL to set the locale you want for this domain.

Note that this may cause unwanted interaction with search engine indexing, as they may or may not set the cookie and follow the redirect.

1 Like