Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jacksonadams2004 opened this issue Mar 1, 2024 · 1 comment

Comments

@Jacksonadams2004
Copy link

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
Copy link
Owner

atauenis commented Mar 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants