can I ask some help. I have this htacess rule
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/?$ edit.php?id=$1 [L]
It works fine if I point my browser like this
http://localhost/testfolder/1
I can echo the value 1
but I am having problem to load the page if I don’t have querystring set in url
example I have guess.php
how can I load the guess.php without .php extension ?
http://localhost/testfolder/guess
I tried to add this in my htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
it works http://localhost/testfolder/guess
but this will not work anymore http://localhost/testfolder/1
Thank you in advance