I have an htaccess file utilising Rewrite Engine. I have attempted to set it up for individual pages to remove the .php extension.
I have found this being applied to an image called logout.png as well though. If the logout.png image is anywhere on the page, the user is logged out as if the logout.php page is being loaded somewhere in the background.
Here is my code:
RewriteEngine on
RewriteRule login login.php [L]
RewriteRule logout logout.php [L]
Is there something there I can change to make sure it's only applied to logout.php and not logout.png?