Welcome! Log In Create A New Profile

Advanced

Re: serve content from a wget mirror

Francis Daly
November 25, 2014 04:54PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

serve content from a wget mirror

Steve Wilson November 24, 2014 06:10AM

Re: serve content from a wget mirror

Francis Daly November 24, 2014 07:38AM

Re: serve content from a wget mirror

Steve Wilson November 25, 2014 02:16PM

Re: serve content from a wget mirror

Francis Daly November 25, 2014 04:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 190
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready