Hi Am using htaccess to move my traffic from http to https as i keep getting alot of errors with it coming up with same content but when i type in the code I have seen I get an error to many redirects? any ideas?
This is the code
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I would change the PERMANENT 301 to TEMPORARY 302 redirection until the URL is working the way you want it to because it is remarkably difficult to change the PERMANENT 301 once it is set.