Is it possible to use .htaccess to send six digit number URLs to a script but handle all other invalid URLs as 404s?
snippet in htaccess

Is it possible to use .htaccess to send six digit number URLs to a script but handle all other invalid URLs as 404s?

user7364

RewriteEngine On
RewriteRule ^([0-9]{6})$ /scriptname.php?no=$1 [L]