I’ve mapped my website like this on the .htaccess file:
RewriteRule ^about/?$ /about.php [QSA,L]
That’s fine, they will open example.com/about but I do not want them to be able to open example.com/about.php
Any way I can avoid that in my .htaccess file?
You can try this: