I currently support friendly urls using this:
rewrite {
if {path} not /manager
regexp ^(?:\/)?(.*?)(?:[\/])?$
to {path} {path}/ /?q={1}&{query}
}
I wonder how do i make /HeLlO rewrite to /hello ?
I currently support friendly urls using this:
rewrite {
if {path} not /manager
regexp ^(?:\/)?(.*?)(?:[\/])?$
to {path} {path}/ /?q={1}&{query}
}
I wonder how do i make /HeLlO rewrite to /hello ?
I only know that it can be done literally, i.e. rewrite /HeLlO /hello
- I’m not aware of any method for this kind of string manipulation dynamically.
The point is, event apache can do it with L flag, regex supports it with \L$1, but it doesn’t work in Caddy
Seems like it’d make a good feature request - a good use case and a direct comparison to another web server’s implementation for reference.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.