thinkphp5项目如何配置 uniapp 生成的页面 /h5/ 二级目录 uniapp history模式下刷新页面404
NGINX:
location /h5 {
try_files $uri $uri/ /h5/index.html;
}APACHE:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /h5
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /h5/index.html [L]
</IfModule>