In order to mirror a whole website as static HTML,
I would like to convert URLs like http://example.com/script.php?t=12
to http://example.com/script.php_t=12
.
Notice ?
in URL is being is being converted to _
.
This will allow nginx or apache to serve these files from disk as the raw HTML we obtained and saved from wget
-- one file for each URL -- rather than as a PHP file.
Is it possible to do so via Nginx URL rewriting?
http://example.com/script.php?a=1&t=3
is going to need some super fancy rewrite actiont
likef
,u
, etc.