Hi, First off awesome article. Much easier to read and understand than others that I have seen. I have used:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
Which works. But the one issue I have is if my url is: domain.com/admin/ the ending / after the page name makes all of the directories show.
I would either like it to redirect removing the / or allow the /
Hi, First off awesome article. Much easier to read and understand than others that I have seen. I have used:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
Which works. But the one issue I have is if my url is: domain.com/admin/ the ending / after the page name makes all of the directories show.
I would either like it to redirect removing the / or allow the /
Thanks