Regex Conditional support by Litespeed?

#1
Hi,

I would like to use conditional regex to fix an issue on my wordpress site, but not sure which rule is support by Litespeed. I want to archive the follow:

1. Redirect thesite/cat1/cat2/URL to thesite/URL

2. The redirect happen only if :

URL is not empty (to avoid redirect thesite/cat1/cat2/ to homepage) and
URL must not content /page/ to avoid redirect the archive thesite/cat1/cat2/page/1, thesite/cat1/cat2/page/2, etc

Can you please advice which rule I should use?

Thanks.
 
Top