Htaccess mod rewrite : Stop trailing info

I have a mod rewrite like this:

RewriteRule ^/?trailers/([0-9]+) page.php?page=$1

The only problem is that a person can do

/trailers/4/hello and that works. I only want the page and no other forwardslashes afterward; so instead create a 404 error.

How do I tell mod rewrite to do this?


The $ symbol matches the end of a string in a regular expression.

RewriteRule ^/?trailers/([0-9]+)$ page.php?page=$1

Thanks, I’ll give that a shot (and am relieved it’s that simple)