A
A
Abc Edc2015-03-12 13:08:11
PHP
Abc Edc, 2015-03-12 13:08:11

How to make slashes understand in nginx?

I wrote a server on Apache home hosting, now I need to transfer it to a server where nginx1.2.1
and routing does not work there, that is,
$routes = explode('/', $_SERVER['REQUEST_URI']);
And there, further, each slash already divides the action into a controller, etc.
for example site.ru/app/controller/action
and just here nginx crashes with 404 they say it does not find such files, how to make it work in Apache style?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-03-12
@gleber1

Show nginx config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question