apache_conf Apache / Nginx HTML5 pushstate重写规则

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf Apache / Nginx HTML5 pushstate重写规则相关的知识,希望对你有一定的参考价值。

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>

以上是关于apache_conf Apache / Nginx HTML5 pushstate重写规则的主要内容,如果未能解决你的问题,请参考以下文章

apache_conf htacces反应apache

apache_conf Apache上的SPA

apache_conf Apache - 强制HTTPS

apache_conf 避免目录列表apache

apache_conf Apache条件.htpasswd

apache_conf Apache .htaccess重定向