thinkingmedia/grunt-thinkingmedia/master/www/.htaccess - Htaccess File

thinkingmedia/grunt-thinkingmedia/master/www/.htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On

    # Redirect non-www urls to www
    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} !^(www|dev). [NC]
    RewriteCond %{HTTPS}s ^on(s)|
    RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    # Rewrite rule for AngularJS
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.html [QSA,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, REQUEST_URI

Comments

Apache