.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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -