with and without trailing slash

mod-rewrite, regex

Solution

RewriteRule ^members/([^/]+)/?$ members.php?id=$1 [L]

Just added "/?" at the end to say look for a trailing slash but the ? says it doesn't have to be there.

Problem

What would I make this rule so that you can access it with and without trailing slash? ``` RewriteRule ^members/([^/]+)$ members.php?id=$1 [L] ```

Original source