/short.cu/key/sub/path to /expanded.com/foobar/sub/path #3088
Unanswered
CamielBouchier
asked this question in
Q&A
Replies: 1 comment 2 replies
-
There are several plugins dealing with passing the query string, ie sho.rt/blah?hey=ho sends to longurlsomething.com/here?hey=ho. They should be a great start for you |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like following functionality:
If "/short.cu/key" expands to "/expanded.com/foobar" then "/short.cu/key/sub/path" should expand to "/expanded.com/foobar/sub/path".
On my local installation I could do it with a ridiculous simple hack:
In yourls-loader.php:
in yourls-go.php:
Knowing all the warnings against core hacking though ... What would be the equivalent way to get it through plugins?
Camiel B.
Beta Was this translation helpful? Give feedback.
All reactions