The Bad Request error is most likely due to a missing entry in the bindings for an IIS site instance.
The error is shown simply in the browser with no other content as:
Bad Request (Invalid Hostname)
To correct the error the website URL is to be added to the site’s bindings.
On the web server open the IIS manager.
At the left expand the treeview menu of sites to show the site with the associated error.
Click on this site to show its property icons in the middle screen and items such as bindings, permissions and settings in the narrow pane at the right.
Click on the bindings icon.
In the pop-up Site Bindings window review the entries. ensure there are entries for the domain with (and without) www.
If you are running the popular DotNetNuke CMS the follow-on error may be
| 404 – File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. |
This is caused by having the correct bindings in IIS but the DNN CMS not having the necessary entry to handle the domain.


