A
A
airbor2018-10-17 22:02:20
htaccess
airbor, 2018-10-17 22:02:20

Is it possible to redirect to https for only one page?

Actually a question, it is necessary to make a redirect only for a part of pages. This is real?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2018-10-17
@BuriK666

really

RewriteEngine On
RewriteCond !{HTTPS} off
RewriteCond %{REQUEST_URI} ^/page$
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question