E
E
evve2021-11-05 19:00:24
Apache HTTP Server
evve, 2021-11-05 19:00:24

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

1 answer(s)
E
evve, 2021-11-09
@evve

Support has corrected this. What was the problem was not reported.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question