This is my current rewrite rule for accessing php files without extension.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
However, I want to be able to format a URL like so,
https://example.com/somefile/parameter
So, something like,
https://example.com/check_user/12345
However I get 500 Internal Server Error when there is trailing parameter after the slash(/).
I really want to get to the bottom of this rewrite rule, and conquer it, but I simply don't have the time to do so. (Pressed for production.)
I would really appreciate the help.