How can I set a prefix for the original URL?

I want to set a prefix so users would only need to type part of the url they want to shorten while the rest of the url is already given.

For example, I have example(dot)com/ but if an user types “anyword” then the url that will be shortened will be "example(dot)com/anyword

Is there any way to do that?

See Possible With A Plugin · YOURLS/YOURLS Wiki · GitHub

I have been researching and trying to make my own plugin, is there any filter for the original long url? So
the plugin can modify the long url users enter

There are a lot of actions and filters, see List of ACTIONS and FILTERS in YOURLS

If you see one missing and think it would be useful, feel free to submit an issue or a pull request

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.