Can anyone help me figure out how to find and change my .htaccess file to make my website always go to the https version? I don’t even know where to find it.
update. I found the file and pasted code: (replaced your domain with mine).
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
Yes it worked for me as well.
I would recommend for other people to always use a 302 (r=302) until after you have tested completely then change to a r=301.
HTTP RC 301’s are permanent. As such they are cached by browsers and proxy servers with no set expiration date.
Yes your great.
The test stopped means that it met your condition and redirected. If you had other rules ( Apache directives) below this redirect it is telling you it stopped processing and did the redirect.
I tried the debugger/testing tool linked above (http://htaccess.madewithlove.be/) and it all seemed to pass ok so, short of some caching thing with cloudflare or something (which wouldn’t impact htaccess files, I wouldn’t think), I’m unfortunately out of ideas/expertise. Maybe Greg will be able to get you sorted if you haven’t already started a ticket with him
I’ve started a ticket with @barchard but again he seems to think there’s nothing wrong with the .htaccess file. But Im no further forwards in understanding why it’s not working for me and for others.
I used the same tool to test it - as recommended in another forum thread - and got the same result.
It sounds like your htaccess file may not be working (read). There are internal apache directives; the file could be in the wrong place, etc. Try placing "junk in the file (anything that is not a good htaccess syntax), you should get a 500 error if it is being read.