<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Template</title> <!--Scripts--> <script type="text/javascript" src="scripts/jquery-1.6.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var lang = (window.sankore)?sankore.locale().substr(0,2):"en"; //local language $.ajax({ type: 'POST', url: 'locales/' + lang + '/index.html', statusCode: { 404: function() { window.location.href = 'locales/en/index.html'; }, 200: function(){ window.location.href = 'locales/' + lang + '/index.html'; } } }); }); </script> </head> <body> </body> </html>