Rewrite Rule To Detect Numbers Only
snippet in htaccess

Rewrite Rule To Detect Numbers Only

user4582

RewriteEngine on
RewriteRule ^([0-9]+)$ view.php?id=$1 [L]