On 22-06-2020 12:58, Maciej Delmanowski wrote:
> location ~* ^\/mailman\/listinfo\/([a-z]*) {
> return 301 /postorius/lists/$1.lists.ciphermail.com/;
> }
I was not able to make this work - when I opened an URL like:
https://lists.debops.org/mailman/listinfo/debops-users
Server redirected me to:
https://lists.debops.org/postorius/lists/debops.lists.debops.org/
And it should have been:
https://lists.debops.org/postorius/lists/debops-users.lists.debops.org/
Any ideas on how to make this redirect work?
Try this regex:
^\/mailman\/listinfo\/(.*)
Should match the hyphen in your list names as well :)