Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Created June 2, 2014 06:29
Show Gist options
  • Save rafaelfoster/dfc112499c44155c6a58 to your computer and use it in GitHub Desktop.
Save rafaelfoster/dfc112499c44155c6a58 to your computer and use it in GitHub Desktop.
Apache - Conf to remove .php from url
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) $1.php [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment