I have tried lots to remove the .php from URL using htaccess. I tried many script but not get the proper result.
RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]
I tried above code to remove .php but not working for me.
I have tried lots to remove the .php from URL using htaccess. I tried many script but not get the proper result.
RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]
I tried above code to remove .php but not working for me.
Try:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ $1.php [L]