解决宝塔部署vue项目时,访问首页正常,其他页面无法访问404 如题,访问首页没问题,其他页面404.其实只要项目配置伪静态即可; 宝塔-》网站-》设置-》伪静态 1 2 3 4 5 6 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.html?s=/$1 last; break; } } 配置好保存即可。
如题,访问首页没问题,其他页面404.其实只要项目配置伪静态即可; 宝塔-》网站-》设置-》伪静态 1 2 3 4 5 6 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.html?s=/$1 last; break; } } 配置好保存即可。