Skip to content

Instantly share code, notes, and snippets.

@AlexPashley
Created July 3, 2013 22:02
Show Gist options
  • Save AlexPashley/5923262 to your computer and use it in GitHub Desktop.
Save AlexPashley/5923262 to your computer and use it in GitHub Desktop.
APACHE: Hide .php extension with apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment