.htaccess - Force HTTPS on entire site? -


this question has been asked before can't find solution works me.

basically have site, , want force on https, did through cloudflare's page rules , tried using .htaccess.

but, site doesn't load images/css. don't want go through every single file/script replace "example.jpg" "https://domain.com/example.jpg".

last time wouldn't let me log in. jcow site, if matters.

thanks, -gie

try .htaccess:

rewriteengine on rewritecond %{https} off rewriterule .* https://%{http_host}%{request_uri}  

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -