Tag Info

New answers tagged


It is very easy to configure a server to hide file extensions by default. On an Apache server for example, it can be done like this: SOURCE RewriteEngine On # Unless directory, remove trailing slash RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/$ http://example.com/folder/$1 [R=301,L] # Redirect external .php requests to extensionless url ...

Top 50 recent answers are included