404 fix when a custom web_root is used
Merge pull request #738 from jerbob92/404webrootfix

404 fix when a custom web_root is used