joeworkman
(Joe Workman)
1
I am curious if it’s possible to make these types of rules one liners in my Caddyfile.
@stacksbad {
path_regexp stacksbad ^/stacks/([\w-]+)/$
}
redir @stacksbad /stacks/{re.stacksbad.1} 301
@stacks {
path_regexp stacks ^/stacks/([\w-]+)$
}
rewrite @stacks /stacks/view.php?id={re.stacks.1}
Two-liners:
@stacksbad path_regexp stacksbad ^/stacks/([\w-]+)/$
redir @stacksbad /stacks/{re.stacksbad.1} 301
1 Like
system
(system)
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.