sepehr
8/23/2016 - 10:50 AM

Apache/Nginx HTML5 pushstate rewrite rules

Apache/Nginx HTML5 pushstate rewrite rules

rewrite ^(.+)$ /index.html last;
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>