Here is my .htaccess file
Options +FollowSymlinks
RewriteEngine on
ErrorDocument 404 /404.php
RewriteRule ^(\d*)/(.*) /page.php?id=$1&slug=$2
It all works fine. But the moment I type site.com/342/my-page/ (with the trailing slash) I get a 404.
I need the trailing slash as optional. I.e it will redirect to the correct page with or without the slash.
I tried this, but it didn't work
RewriteRule ^(\d*)/(.*)/?$ /page.php?id=$1&slug=$2
Any ideas?