M
M
Multigame2015-03-26 13:56:36
Nginx
Multigame, 2015-03-26 13:56:36

How to catch all urls without extensions?

Good afternoon.
I need help setting up nginx. Namely, compiling a regular expression for location.
How can you catch and redirect all calls to url that do not have extensions, i.e.
host.eu/folder/folder
host.eu/www/folder/
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2015-03-27
@inkvizitor68sl

location ~*(.*)/[a-z0-9]+/? { .. }
So try it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question