htaccess redirect only if it has value after forward slash

Viewed 255

I would like to apply the following htaccess rule only if there is a value after the forward slash of /events/

If I visit /events/ (Don't do anything. DO NOT apply the htaccess rule)

But if I visit /events/this-can be-anything/ (Apply the htaccess rule below)

RewriteRule ^events/(.*) /lp/events/index.php [L]

This is obviously not working.

1 Answers
Related