SCPath = "/cgi-bin/SoftCart.exe"; // Replace this with your path to SoftCart.exe config = "tea"; // Replace this with the name of your configuration file if (location.pathname.substring(0,SCPath.length) != SCPath) { window.location = SCPath + location.pathname + "?E+" + config; }