Revert "Trying to fix 404 redirect loop"

This reverts commit 54b5556159cd4393d3b8ea5f653f99efb7cb4be6.
That commit broke everything. :(
Removed error doc rewrite and www rewrite
Adding in error page
removed everything but 404
Completely removed .htaccess
Added error doc
Added missing semicolon
Restructured DOM rendering
Refactored a bit so source code looks pretty
Added in error page
Whoops. Forgot closing brace.