T
T
twixoff2014-12-07 17:31:55
htaccess
twixoff, 2014-12-07 17:31:55

Redirect to https for specific domain?

Need to redirect to https for a specific domain.
We have apache and these Googled rules:
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
We get "A cyclic redirect was detected on this page" ((
Tell me how to fix it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twixoff, 2014-12-08
@twixoff

SSL was configured incorrectly, causing %{HTTPS} to always show off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question