serve content from a wget mirror
Francis Daly
francis at daoine.org
Tue Nov 25 21:52:41 UTC 2014
On Tue, Nov 25, 2014 at 07:13:49PM +0000, Steve Wilson wrote:
> On 24/11/2014 12:36, Francis Daly wrote:
> > On Mon, Nov 24, 2014 at 11:05:10AM +0000, Steve Wilson wrote:
Hi there,
> > Option 1: in all of the html that contains links that refer
> > to /dir/page.php?a=1&b=2, url-encode it to be (at least)
> > /dir/page.php%3Fa=1&b=2 (that is: ? becomes %3F).
> I'm going to have a look at wget options to encode as option 1 so even
> the try_files won't be needed.
I suspect that there won't be a wget option for that. (Unless "-k"
has grown more options recently.)
I imagine that a perl or sed script to edit the files in-place may
be simplest.
It does depend on the content; but looking for the string ".php?" may
be a good start -- does that match anything that you do not want to
convert? And then: is there anything left that you do want to convert?
Good luck with it,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list