If I have site.com/page/about.php
How can I remove the sub directory and file extension?
Example: site.com/about
Use this in your .htaccess file
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^about(\/?)$ /page/about.php [NC,L]
Create your .htaccess in your root folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With