真的挺头大的,
页面地址是 https://www.d****.com
api地址是https://gr.d****.com
因为跨域问题 开启了vue的 proxyTable
proxyTable: {
'/apis': {
target: 'https://gr.digua.com', // 接口地址
changeOrigin: true,
pathRewrite: {
'^/apis': '' //需要rewrite重写的,
}
}
},
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
**
页面线上部署后首页能访问,子页面访问全是404,加了下面的伪静态
子页面能够正常显示了,但是访问接口一访问就把吐HTML代码
**php apache 非 nginx **