Added redirect exception for local dev environment

The code that checks the server host header needed to be updated so that
running the site from the local development environment doesn't redirect
to the live site.