So the orginal url looked like
website.com/post.php?id=130
using the following htaccess rules i was able to remove .php from the url
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
now the url looks like this
website.com/post?id=130
Now i wish to replace the "?id=" with a slash to make the url look like
website.com/post/130
any tips on what to do here ?
You need an additional rule for that: