I am asking question after so many attempts to do this. Found many results on this website but none of them worked for me.
I have a website built in PHP (no any CMS) that has URLS like
RedirectMatch 404 ^/admin/$
RedirectMatch 404 ^/admin/uploads/$
ErrorDocument 404 /page_not_found.php
deny from all
allow from all
RewriteEngine on RewriteRule ^([0-9]+)/?$ /job_detail.php?job_id=$1 [L]