vue history 模式下的 服务器配置(appcathe)
在根目录 配置 .htaccess
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(wchat|wchat/.*)$
RewriteRule ^/wchat/index\.html$ - [L,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(wchat|wchat/.*)$ wchat/index.html [L]
</IfModule>