Htaccess File

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

REQUEST_FILENAME, REQUEST_URI
<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>
Exit mobile version