pumazi/cnx-backbone-prototype/master/www/.htaccess - Htaccess File

pumazi/cnx-backbone-prototype/master/www/.htaccess

# .htaccess - Makes this a single page application.
# 
# Michael Mulich, (C) 2012 Rice University
# 
# This software is subject to the provisions of the GNU Lesser General
# Public License Version 2.1 (LGPL).  See LICENSE.txt for details.

# html5 pushstate (history) support:
# Originally derived from:
#   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
    RewriteRule (.*) index.html [L]
</ifModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache