changed the way redirects work so it would work when public is DocumentRoot