Updating htaccess to support SSL and fixing an issue with redirects