Z
Z
zhdoon2019-06-20 13:58:10
htaccess
zhdoon, 2019-06-20 13:58:10

How to set up a redirect in uppercase to lowercase?

The site works on the https protocol. There is an instruction:
#Up to Low
RewriteCond %{REQUEST_URI} [AZ]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ ${lc:%{REQUEST_URI}} [L,R=301]
# Up to Low
The problem is that when you enter the address https://site.ru/inFo/ , a redirect to the page http://site.ru/info/ is triggered. What needs to be added to redirect to https ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-06-20
@zhdoon

Add https:// and domain.

RewriteCond %{REQUEST_URI} [A-Z]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ https://site.ru${lc:%{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