S
S
sadieff2016-11-02 14:20:14
htaccess
sadieff, 2016-11-02 14:20:14

How to redirect url link to file without http to link with https?

Good day! I redirect from http to https like this:

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

But this does not happen with files, for example, pdf files are not redirected, but are immediately opened by the browser with http. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question