How to 301 http:// to https://

swiftmoney

∞
Sep 14, 2011
999
8
0
Any help with this will be massively appreciated.

Basically I have just installed an ssl certificate, all gone smoothly. Now I would just like to redirect all of my http://www .dd. com pages to https://www .dd. com pages, site wide.

I have tried all kinds of .htaccess rules.
I just keep getting "page not found, too many redirects".

Please can anyone let me know how to resolve this. I am willing to pay, its proper pissing me off :angryfire:

Cheers.
 


I'm using the following:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

If it fails, pm me and we'll get it sorted.
 
Thanks for your help.

I seem to be getting the same response with this. Redirect loop.

I am using Cloudflare. Could this be causing any issues?


Cheers.
 
Can you share your .htaccess file? Sounds like something is conflicting or multiple redirect rules are being applied to the same URL. It could be as easy as changing where this directive is in the file, so the execution order is different.