I need to pass an existing http site to https and what to know how it will work with Admintools
I’m using .htaccess Maker to produce the first htaccess but I add my own custom code at few points.
• One point that I really worry about is my actual 301 www to non-www redirection
##### Redirect index.php to / -- BEGIN RewriteCond %{THE_REQUEST} !^POST RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteCond %{SERVER_PORT}>s ^(443>(s)|[0-9]+>s)$ RewriteRule ^index\.php$ http%2://mysite.com/ [R,L] ##### Redirect index.php to / -- END ##### Redirect www to non-www -- BEGIN # HTTP RewriteCond %{HTTPS} !=on [OR] RewriteCond %{HTTP:X-Forwarded-Proto} =http RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # HTTPS RewriteCond %{HTTPS} =on [OR] RewriteCond %{HTTP:X-Forwarded-Proto} !=http RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] ##### Redirect www to non-www -- END
• Do I have other things to be worry about ?
Thanks in advance!