A
A
Andrew2015-02-04 18:18:08
Computer networks
Andrew, 2015-02-04 18:18:08

How to redirect from https:// to http:// in .htaccess?

Can you tell me if it is possible to redirect from https:// to http:// in .htaccess?
If possible then how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Nosov, 2015-02-04
@Cat1987

Yes it is possible. To do this, add the following lines:
RewriteCond %{HTTPS} on
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI}

N
Nazar Mokrinsky, 2015-02-05
@nazarpc

You'd be better off doing it the other way around

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question