i have found a solution here, which I am looking for
so basically I modified the given htaccess code (following code is from solution)
RewriteRule ^products/([A-Za-z0-9-])/?$ /view.php?mode=prod&title=$1
I changed it to fit my needs to
RewriteRule ^blog/([A-Za-z0-9-])/?$ /blog.php?id=$1
but when I visit the url localhost/blog/1
it gives me 404 Error, that's the only line in my .htaccess file, what I am doing wrong?