D
D
Denis2019-06-14 15:23:11
htaccess
Denis, 2019-06-14 15:23:11

How to make a redirect from https://www to https://site_name.ru?

How to make a redirect from https://www to https://site_name.ru?
a question beaten to the point of losing momentum.
Made a redirect to https, now you need to from https://www to https://
here is my redirect in .htaccess

RewriteEngine On
RewriteCond %{HTTPS} =off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]

It is necessary that absolutely all visits go to this address: https://site_name.ru
Can anyone tell me?
Thanks
ah yes. The site is on the subdomain https://VOTE.site_address.ru

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