I have a Wordpress site functioning as a blog site on a website. The main website is just basic HTML it is only www.example.com/blog which has the WordPress site.
I have installed an SSL certificate for the domain and it is working fine. I have a .htaccess file in the root folder redirecting from HTTP to https for the main site and another in the /blog folder redirecting the Wordpress site.
The problem I am having is the main folder www.example.com/blog will redirect to https however none of the blog posts will redirect.
So for example if I enter http://www.example.com/blog into the browser i get https://www.example.com/blog.
But if I enter http://www.example.com/blog/blog-post I get http://www.example.com/blog/blog-post it does not redirect.
I have tried a number of different .htaccess commands, but they all give the same result. I currently have the following script in the .htaccess folder.
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Any help on this would be greatly appreciated.