Skip to content

Instantly share code, notes, and snippets.

@d3zorg
Created February 4, 2013 19:32
Show Gist options
  • Save d3zorg/4708979 to your computer and use it in GitHub Desktop.
Save d3zorg/4708979 to your computer and use it in GitHub Desktop.
Remove the .php extension with mod_rewrite
# put into .htaccess or virtual host
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.php$
RewriteRule ^(.+)$ $1.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment