Answer the question
In order to leave comments, you need to log in
How to configure router in nginx config of OpenServer-a?
copied Nginx-1.12_vhost.conf to the root of the site folder.
changed
location / {
root "%hostdir%";
index index.php index.html index.htm;
}
to
location / {
root "%hostdir%";
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$query_string;
}
but that didn't help. you can still browse through the files through the address bar.
contacted Maxim. he responded with one line -
rewrite ^/(.*)$ /index.php last;
but he does not write what to do with it, where and how to insert it.
so I decided to ask here, sobsno, where and how to insert 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