I’ve got some code that mirrors some pages using wget, and some of the pages to be mirrored are links like “http://example.com/somepage.php?id=1234”. wget ends up saving those pages as “somepage.php?id=1234.html”. When I try to visit that page, I get a 404.
I’ve tried adding “autoindex on;” to the config for that directory to make sure that the filename is correct, and I click on the link generated by nginx when I visit the directory that contains that page, and I still get a 404.
How can I get nginx to serve pages with a question mark in the name?
To future readers: visiting
somepage.php%3Fid=1234.htmlworked. (See the comments above.)