Same thing. You need to follow the instructions from the second half of the file. Admin, maybe you want to change that text to remove the word “Directly”. It might make it clearer.
Create a new .htaccess file in your htdocs
directory (or example.com/htdocs/ directory)
to add your own rules or override these rules.
I’m not sure what I’m missing on this?
Does someone have an example of what should be in the “.htaccess” file that gets uploaded to the “htdocs” folder? I’ve also already tried downloading the original “.htaccess” file, deleting all of the content in it and then adding the redirect code to it and uploading this new file to the “htdocs” folder with the same results. It would probably be a good idea if there was a sample file that worked that could just be download and re-uploaded to anyone’s “htdocs” folder to accomplish this HTTP to HTTPS redirect.
It’s been several days since setting up the SSL Cert, so I don’t think that is it. I did find a less elegant work around, and I’m not sure what the negative ramifications are as far as Search Engine Optimization (SEO) as well as any possible “unsecure” warning messages a web browser may throw onto the screen to a user before it tries to switch to a secure screen. I added the below java code I located online, to the top of the index.html page I’m using, which will force the page to reload as HTTPS. So far it seems to have worked in the four web browsers I’ve tried.
@ _recce
For some reason the code the _recce gave me worked! I’m not sure why that code worked, but the other ones I tried didn’t, but I’m glad it did. Thank you for everyone’s help!!!
Have a great day!
I just edited it, the word doesn’t really add anything.
No, it is my text, I wrote it for InfinityFree. The default .htaccess content can be customized for every domain name. Any other reseller using this exact template stole my property.