Perlba...edirect(3pm)

πŸ“¦
version 1.80 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

Perlbal::Plugin::Redirect β€” the plugin that does redirecting in Perlbal land ✨

okay so bestie, this is a User Contributed Perl Documentation page, and it's a short one but it's lowkey iconic πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, verbatim, no cap:

LOAD redirect

CREATE SERVICE redirector
    SET role = web_server
    SET plugins = redirect
    REDIRECT HOST example.com www.example.net
ENABLE redirector

like… look at her go πŸ’… you LOAD redirect first, then you CREATE SERVICE redirector, you set the role to web_server, you set the plugins to redirect, you do the whole REDIRECT HOST example.com www.example.net thing, and then you ENABLE redirector and she's live 🌈


🌸 LIMITATIONS 🌸

ngl, she's a little baby plugin and we respect that πŸ™ˆ here's the tea:

  • right now this can only redirect at the hostname level. that's it. that's the whole range. no path shenanigans, no fancy deep-linking, just the hostname. periodt.
  • also, she just assumes you want an http: URL. she's not asking. she's assuming. so if you were hoping for https:… she said what she said πŸ’€
not a bug bestie, just the way she is fr fr 🫢

and that's the whole page!! πŸŽ€ this lil masterpiece is perl v5.34.0, dated 2022-06-28, and it's filed under Perlba...edirect(3pm) β€” short, sweet, and she ate πŸ’œβœ¨

πŸ“¦ where this page comes from