[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any tool/utility to rewrite URLs in an html page
- From: Craig Barnes <craigbarnes85@...>
- Date: Wed, 8 Jan 2014 23:14:42 +0000
Le 8 janv. 2014 à 12:18, Rv Rv <rvrv7575@yahoo.com> a écrit :
> I am beginning to use lua especially with nginx. I need to rewrite the URLs
> *within* the html page.The lua html parser at
> https://github.com/wscherphof/lua-htmlparser provides the URL but as far as
> I understand from its documentation, it will not rewrite the URL. I can
> perhaps reconstruct the page but was wondering if there is already a tool
> that would do that
This example may be closer to what you want:
https://gist.github.com/craigbarnes/8326199
It replaces all href= attributes with values beginning
"http://example.com" with "http://example.org".
(Sorry for the double post.)