bruin Posted March 27, 2014 Share Posted March 27, 2014 Hello friends: i want to add a function to resist some language of browse ,such as japanese. how can i do it? thank you very much. Link to comment Share on other sites More sharing options...
vekia Posted March 27, 2014 Share Posted March 27, 2014 hello can you describe what you want to achieve exactly? you mean that you don't want to display module, if customer browse your page with selected japanese language? Link to comment Share on other sites More sharing options...
bruin Posted March 27, 2014 Author Share Posted March 27, 2014 if the language of the browse is japanese , my shop will auto redirect a 404 or error page. for example: <?php $client_sys_language = getenv("HTTP_ACCEPT_LANGUAGE"); if (preg_match ("/^en-us/i",$client_sys_language)) { echo "<H1>Error!</H1><HR>Your Request page have not found.Please check it again!<P><P>Additionally, A 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."; exit; } ?> Link to comment Share on other sites More sharing options...
Recommended Posts