欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

vuejs router history 配置到iis的方法

程序员文章站 2022-04-29 19:12:55
先用web平台安装程序安装url rewrite 然后新建web.config在网站根目录下 写如下:

先用web平台安装程序安装url rewrite

然后新建web.config在网站根目录下

写如下:

<?xml version="1.0" encoding="utf-8"?>

<configuration>
 <system.webserver>
  <rewrite>
   <rules>
 <rule name="angular rule" stopprocessing="true">
  <match url="(.*)" />
  <conditions logicalgrouping="matchall">
  <add input="{request_filename}" matchtype="isfile" negate="true" />
  <add input="{request_filename}" matchtype="isdirectory" negate="true" />
  </conditions>
  <action type="rewrite" url="/" />
 </rule>
   </rules>
  </rewrite>
 </system.webserver>
</configuration>

以上这篇vuejs router history 配置到iis的方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。