.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

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -