atauenis / webone

HTTP 1.x proxy that makes old web browsers usable again in the Web 2.0 world.
Other
518 stars 18 forks source link

add an option to replace/remove a certain URL name instead of the whole URL #115

Open Jacksonadams2004 opened 9 months ago

Jacksonadams2004 commented 9 months ago

I am trying to revive the old i.reddit.com service which got shutdown 1 year ago but i managed to find a work around by adding a reddit.com/.i to the URL the only problem is that the links direct to /.compact which it will redirect to the new mobile site which does not work well on old mobile devices is there a way to remove the .compact URL and change it to .i I tried to redirect it using this code i made

.Edit:^http://www.reddit.com] ; i.reddit redirect IgnoreUrl=/.i IgnoreUrl=.i# IgnoreUrl=/.compact.i# AddRedirect=http://reddit.com%UrlNoDomain%/.i#.

It worked for a bit. But the .compact URL was kept and then it showed a 404 error

I have read the wiki but there was no documented URL replace editing mask

atauenis commented 9 months ago

Try use RegExp capture groups:

[Edit:^http://go.microsoft.com/fwlink/\?LinkId=57426&Ext=([a-zA-Z0-9\.]*)]
AddRedirect=http://web.archive.org/web/2009/http://shell.windows.com/fileassoc/0409/xml/redir.asp?EXT=$1

%UrlNoDomain% mask were initially created when there was no capture groups support in WebOne.