The below rule I took from here and modified it (very little) so it adds a slash after removing the php file extension.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)/$ $1.php
So the url Domain.com/file.php will look like Domain.com/file/
And it works fine as long as I have a link or type in directly Domain.com/file/ but I want to keep all my links to my php files. So I want it to redirect someone to Domain.com/file/ if someone goes to Domain.com/file.php
But when I try to redirect (if I'm doing this properly)
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)/$ $1.php [R=301,L]
But It doesn't redirect. :(
I'm not sure if I'm redirecting in correctly or if I'm simply not allowed to do this. Any advice is awesome.