Nginx redirect PHP request with parameters to other page

by Martin   Last Updated July 17, 2017 10:00 AM

I have maybe simple question. I want to redirect redirect this myBB's page:


To this one:


I tried this in nginx's vhost config:

location /misc.php?action=help&hid=10 { return 301 /document.html; }

But it didn't work...

Tags : nginx php

Related Questions

Nginx: alias and try_files with $args

Updated March 26, 2015 14:00 PM