I am trying to write a rule to remove .php from my urls.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [L]
All my url's are working as expected but one of the url for login into my admin panel http://localhost/admin/login.php
seems to have stopped working. The admin page post login redirects again to the http://localhost/admin/index.php
page.
Can anyone guide me on what wrong am I doing?