F
F
f0stgis2016-04-21 14:52:04
Nginx
f0stgis, 2016-04-21 14:52:04

How to make a redirect on nginx with a certain get parameter to without?

Tell me how to make a redirect from the page
www.site.ru/page/?view=desktop
to
www.site.ru/page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-04-21
@BuriK666

if ($arg_view = 'desktop') {
    return 301 $uri;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question