Y
Y
yandexdirectkupon2019-05-03 22:15:34
Nginx
yandexdirectkupon, 2019-05-03 22:15:34

Transferring .htacces to nginx conf - is it real?

you need to translate these rules to nginx:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2019-05-03
@Immortal_pony

location / {
    try_files $uri $uri/ /index.php;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question