I am developing an ecommerce application using PHP. All the pages were accessed through HTTPS, while some of the pages are accessed through HTTP like home page, category listing and product listing. I have used htaccess code for redirection. But in HTTPS pages it shows shield symbol in the address bar and denotes that a web page is partially encrypted. Kindly advice me to resolve.
Htaccess code
########### Load Home, Category, Products and Product Detail page with HTTP ##########
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} index\.php|category|product
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
########### Load other than Home, Category, Products and Product Detail page with HTTPS ##########
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !(index\.php|category|product)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]