I don't want to make a single page that will handle all the posts like the URL:
somewebsite.com/blog.php?blog=2232
I want that every blog should appear like:
somewebsite.com/blog1/
somewebsite.com/blog2/
For example, WordPress displays every post in its URL. I want the same functionality.
What you are looking for is .htaccess's RewriteRule What you want to add is:
RewriteEngine On
RewriteRule ^blog/(.*)$ blog.php?blog=$1
When adding this, /blog/5 will display the content of blog.php?blog=5
Also, check this video out: https://www.youtube.com/watch?v=1pbAV6AU99I