Skip to content

Instantly share code, notes, and snippets.

@rugor
Created October 19, 2016 01:19
Show Gist options
  • Save rugor/341b5e8df01da6d7db6e6833ef593812 to your computer and use it in GitHub Desktop.
Save rugor/341b5e8df01da6d7db6e6833ef593812 to your computer and use it in GitHub Desktop.
.htaccess: drop the .html from static files for clean urls
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment