Allow home and error pages to have subpages and files

This PR intends to allow the home and error page to contain sub pages and files.