We are trying to convert our nginx server to Litespeed, and one of the final pieces I need to solve is rewriting this simple rewrite rule to Litespeed's format
Nginx Rule:
This redirects URLs like site.com/index.php?forums/test.1234 to site.com/forum/forums/test.1234
It's important that the redirect rule only match those suffixes that are listed in the regex, though. For the life of me, I simply cannot get the Litespeed syntax figured out. Any help would be greatly appreciated.
Nginx Rule:
Code:
~^/index\.php\?(?<suffix>(forums|threads|members|resources|posts|help|tags|attachments).*)$ /forum/$suffix;
It's important that the redirect rule only match those suffixes that are listed in the regex, though. For the life of me, I simply cannot get the Litespeed syntax figured out. Any help would be greatly appreciated.