V
V
Victoria2022-02-21 09:47:58
Nginx
Victoria, 2022-02-21 09:47:58

Why does htaccess work on nginx?

Good day to all. Site on nginx. At the root there is .htaccess, standard for Bitrix. I add a redirect rule from URL without WWW to WWW, it works for all pages except the main one.
Why does it work if, in theory, it shouldn't work on nginx? And then how to set it up correctly so that it works for the main page?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lynn "Coffee Man", 2022-02-21
@Lynn

htaccess doesn't work in nginx. Perhaps you have proxying in apache there

V
Viktor Taran, 2022-02-21
@shambler81

you have nginx+apache
look what you have in proxy_pass?

A
Alexey Dmitriev, 2022-02-21
@SignFinder

The www redirect in Bitrix is ​​best configured through nginx. As for htaccess, as mentioned above, it does not work in nginx. You should at least study something - how Bitrix works out of the box in general, since you decided to get into it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question