.htaccess - redirect ALL trafic including JS/CSS to https -
i have https installed websites uses aboslute http:// links
i tried solve .htaccess such as:
rewritecond %{http_host} !^www\. rewriterule ^(.*)$ https://www.%{http_host}%{request_uri} [l,r=301]
but still images , js fetched http , not https gives me errors.
how can force fetched https ? (including js , images) using .htaccess
this take http request made site , 301 redirect https equivalent:
rewriteengine on rewritecond %{https} !=on rewriterule ^ https://%{http_host}%{request_uri} [l,r=301]
Comments
Post a Comment