Fixing issues with redirects and also getting the framework to be standard