# For clean urls DirectoryIndex index.html RewriteEngine On RewriteBase / # Do not do anything for already existing files and folders RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .+ - [L] # add .html file extension (if such file does exist) RewriteCond %{DOCUMENT_ROOT}/$1\.html -f RewriteRule ^(.+[^/])/?$ $1.html [L,QSA] # BEGIN Gzip AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript # END Gzip <% Gumdrop.redirects.each do |opts| %> # Redirect <%= opts[:from] %> <%= opts[:to] %> <% end %>