Answer the question
In order to leave comments, you need to log in
How to set up a single entry point in the nginx - php-fpm bundle?
Hello!
Actually, you need a single entry point for one script on the site - that is, not to redirect the entire site to one file, but only for one script in a separate folder.
And here if everything is simple with Apache, then I can’t understand how to implement the same for nginx.
Answer the question
In order to leave comments, you need to log in
More or less like this:
location = /path/to/script {
rewrite ^(.*)$ /path/to/another/script break;
}
If everything is simple with Apache, then here is a converter for .htaccess for you
Write rewrite for Apache, you get for nginx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question