phiphou/was/master/src/public/.htaccess - Htaccess File

phiphou/was/master/src/public/.htaccess

Options -MultiViews
ErrorDocument 404 /404.html

<IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    # Options +SymLinksIfOwnerMatch
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{REQUEST_URI} !assets
    #RewriteCond %{REQUEST_URI} !.*.(html|png)
    RewriteRule ^(?!assets)([A-Za-z0-9_]*)(/([A-Za-z0-9_/]*))* index.html
</IfModule>

<IfModule mod_rewrite.c>
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
    RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>

On Github License

Files

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

Comments

Apache