Options +FollowSymLinks
Options +Indexes
RewriteEngine on
Redirect requests to PHP files without the .php extension
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^.]+)$ $1.php [NC,L]
Why Remove .php from URLs?
Improves Readability – Shorter, cleaner URLs enhance user experience.
SEO Benefits – Search engines prefer simple and structured URLs.
Future-Proofing – If you switch technologies, URLs remain consistent.