Fixing SSL rewrite rules