Answer the question
In order to leave comments, you need to log in
Why is internal page redirect not working in wordpress?
Good day!
There is this code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI } [L,R =301]
#RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
It will redirect the main page if it's accessed via http, but it doesn't work with internal ones. How to fix?
Those. the user went to mysite.ru/page1 redirects him to https://mysite.ru/page1
For some reason it doesn't work at the moment( How to fix it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question