Tagged: .php

Trim .php extension using .htaccess 0

Trim .php extension using .htaccess

Trim your .php extension in your web application using .htaccess RewriteEngine on RewriteRule ^$ index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php