PHP detect if slug URL starts with ES/ or EN/
I need to detect the language the user is using to include the correct file using PHP if elseif or else like this: users are comming from: example.com/EN/nice-title-url-from-database-slug example.com/DE/nice-title-url-from-database-slug example.com/ES/nice-title-url-from-database-slug the php I need is something like this: PHP document.location.toString().split(...)…