//在项目根目录下新建 .htaccess 文件 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.html$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.html [L] --默认页面路径 </IfModule>
标签:index,vue,html,FILENAME,404,Apache,RewriteCond From: https://www.cnblogs.com/wangshishuai/p/17202973.html