.htaccess 301 vs. 302 Enforcing HTTPS
For WordPress, I have seen two different techniques to edit the .htaccess file for routing to HTTPS. What are the pros and cons of these: Option #1 RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] When navigating to www.example.com, this solution returns status 302 and routes traffic to https://www.example.com See here. Option #2 # … Read more