.htaccess - Apache loads relative URLS as HTTP when using HTTPS -



.htaccess - Apache loads relative URLS as HTTP when using HTTPS -

i trying utilize ssl on website, recources have relative url load http:// when page using https://

this .htacces

options +followsymlinks rewriteengine on rewritecond %{http_user_agent} libwww [nc,or] rewritecond %{query_string} ^(.*)=http [nc] rewriterule ^(.*)$ – [f,l] rewritecond %{http_host} ^tacticalghillies.nl [nc] rewriterule ^(.*)$ http://www.tacticalghillies.nl/$1 [l,r=301] rewritecond %{query_string} base64_encode[^(]*\([^)]*\) [or] rewritecond %{query_string} (<|%3c)([^s]*s)+cript.*(>|%3e) [nc,or] rewritecond %{query_string} globals(=|\[|\%[0-9a-z]{0,2}) [or] rewritecond %{query_string} _request(=|\[|\%[0-9a-z]{0,2}) rewriterule .* index.php [f] rewriterule .* - [e=http_authorization:%{http:authorization}] rewritecond %{request_uri} !^/index\.php rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php [l]

what screwing up?

difficult understand "code".

i think can add together in origin :

rewritecond %{https} off rewriterule (.*) https://%{http_host}%{request_uri} [r=301,qsa,l]

apache .htaccess https

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -