I would like the language accepted by the browser to be automatically added via htaccess. Guy
My problem is that I have href of this type:
I use a php file to do the routes:
case '/user/sign-up': require $_SERVER['DOCUMENT_ROOT'].'app/SignUp.php'; break;
The urls are all without the language, that is: www.test.com/ceo/register
I only have two languages that I accept ru and en. Also if the user changes the language I save the setting inside a session
Do you know how I can do it?