jeremyworboys/strap-html/master/.htaccess
# ----------------------------------------------------------------------
# Start rewrite engine
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
</IfModule>
# ----------------------------------------------------------------------
# Built-in filename-based cache busting
# ----------------------------------------------------------------------
# <IfModule mod_rewrite.c>
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.+).(d+).(js|css|png|jpe?g|gif)$ $1.$3 [L]
# </IfModule>
# <IfModule mod_expires.c>
# ExpiresByType application/javascript "access plus 1 year"
# ExpiresByType text/css "access plus 1 year"
# </IfModule>
# ----------------------------------------------------------------------
# URL rewriting
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
# Force the "www." at the beginning of URLs
# ------------------------------
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
# # Remove index.php from requests
# # ------------------------------
# RewriteCond %{THE_REQUEST} ^GET.*index.php [NC]
# RewriteCond %{THE_REQUEST} !/system/.*
# RewriteRule (.*?)index.php/*(.*) /$1$2 [R=301,L]
</IfModule>
On Github License
Files