I am using a .htaccess file to catch ErrorDocument. Now, I have :
ErrorDocument 404 /errors/error404.php
It works great, but now, I want another error 404 file (or another content for this file), if the previous url contained "eu".
ErrorDocument 404 /errors/error404.php
<!-- If URL contains "eu", do : -->
ErrorDocument 404 /errors/eu_error404.php
Is this possible ? Or can I catch the URL where I came to execute differents include with PHP ?
I would like to avoid $_SESSION
..
I saw things like : $_SERVER['HTTP_REFERER']
Can someone explains me :) ?