Vue used by the company. Single page...
vue does not support browsers below ie9.
All I want is for nginx to determine whether it is IE. And the version is lower than 10. Then I rewrite to another page...
But it never succeeded.. To facilitate testing. I changed the condition to ie
if ($http_user_agent ~ "MSIE") {
rewrite /message.html break;
}
There is a message page in the project root directory, prompting the user to switch to an advanced browser or upgrade.
But this did not succeed!!!!!
history mode used by vue
I personally think this should be done on the front end. Before each entry to the homepage, a vue routing navigation hook function will be sent
beforeRouteEnter
, and then it will be judged here whether it is IE. And the version is lower than 10, if so, jump directly Redirect to another pageIt is safest to write directly in index.html or use native JS. . .