shalomsam/being.desi/master/web/.htaccess
#### REWRITE
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#### Forcing HTTPS (uncomment these lines if HTTPS is required)
#RewriteCond %{HTTPS} !=on [OR]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
#### Route everything through index
# NOTE: This will chnage to 443 if force HTTPS turned on above
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9_-/.@]+)$ index.php?page=$1 [QSA]
</IfModule>
#### EXPIRES
<IfModule mod_expires.c>
#### Media and Fonts
<FilesMatch ".(jpg|jpeg|png|gif|swf|ico|woff|ttf)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</FilesMatch>
<FilesMatch ".(js|css|html)$">
ExpiresActive on
ExpiresDefault "access plus 1 second"
</FilesMatch>
</IfModule>
#### ENV VARS ####
On Github License
Files
Download PDF of Htaccess file