if you are using laravel framework in website and you want to redirect http to https using htacess then you can use below code. USe code :
Developers Map
Discy Latest Questions
Disable mod_pagespeed on server using htaccess jus put code on top of your htaccess
If you are running subfolder in cake php directory. Than you got error missing controller. I am providing a .htaccess code to resolve error Please add this code in htaccess at top of file
Steps to Edit .htaccess File 1. Redirect All Web Traffic RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] 2. Redirect Only a Specific Domain RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] 3.Redirect Only a Specific Folder RewriteEngine On RewriteCond ...