Problems Converting RedirectMatch rule to RewriteRule

#1
After changing the Wordpress Permalink structure, I was using RewriteMatch in the .htaccess file to create 301 redirects for all of the posts. I moved over to a Litespeed web server last week and realized that this rule is not supported.

RedirectMatch 301 ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(?!page/)(.+)$ https://mywebsite.com/$4

I don't have much experience with writing rules, but I put together the following using an .htaccess tester tool that shows the correct output. After adding it to my .htaccess file however, it still isn't working. Based on other discussions here, I tried placing ^/? in front as well, but no luck. I've rebooted the web server, cleared the cache, etc. but I am stumped as to what I am doing wrong.

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(?!page/) $4 [QSA,L]
 
Top