In the example, http://alephstudios.com acts as the corporate intranet site that is not accessible from outside the company’s network, and //ardamis.com acts as the publicly accessible site, which can be accessed both from within and outside the corporate network.
Setting up an intranet detection/redirection page as the browser’s home page allows IT to display an intranet page while the device is on the network and an Internet page when the device is off the network.
So simple! I wish I had thought of this earlier. Thanks for sharing.
This script is great, thank you for posting it!
I did find one mistake though, which took me a minute to figure out. The double forward slashes on line 34 should go on line 33 instead. Once I corrected that, the script runs perfectly. The other issue I’m trying to overcome now is that upon page load, IE keeps prompting before allowing the script to run. I’d probably have to relax the browser security settings, but I rather not do that for the entire user base.
Forget what I said about the IE security prompt. It was only happening when I was testing the html page locally. Once uploaded to the web server, it ran seamlessly. Again many thanks!