vue 打包服务器去掉#,伪静态配置

曹え 5811 发布于:2022-06-20 07:38:55

apache


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.html [L]


nginx

ewrite ^/(.*)$ /index.html last;


觉得有用请点个赞吧!
1 923