craig-doyle-uk/booklinesinker/master/app/.htaccess - Htaccess File

craig-doyle-uk/booklinesinker/master/app/.htaccess

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*" 
    Header set Access-Control-Allow-Credentials true
</IfModule>

# angularjs pushstate (history) support:
# See http://www.josscrowcroft.com/2012/code/htaccess-for-html5-history-pushstate-url-routing/
<ifModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !index
    RewriteCond %{REQUEST_URI} !.*.(css¦js|html|png)
    RewriteRule (.*) index.html [L]
</ifModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache