vuejs router history 配置到iis
2017-05-16 15:44
671 查看
先用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>
然后新建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的方法
- tomcat服务如何配置vue-router的history模式
- Vuejs+vue-router打包+Nginx配置的实例
- vue-router下的html5 history在iis服务器上的设置 vue去掉#
- 详解Vue.js项目API、Router配置拆分实践
- vue.js router的配置
- vue-router下的html5 history在iis服务器上的设置 vue去掉#
- Vue.js项目API、Router配置拆分实践
- vue-router的history模式发布配置
- vue-router使用history的配置问题
- vue.js环境配置
- Vue.js第二天学习笔记(vue-router)
- Vue.js系列之vue-router(上)(3)
- webstorm下vuejs开发配置
- Flask MVVM 开发(vue.js) - ajax如何同步更新地址栏history 以及使用浏览器返回按钮
- Vue.js系列之vue-router(下)(5)
- pdf.js在IIS中配置使用笔记
- Vue.js结合vue-router和webpack编写单页路由项目
- Vue.js系列之vue-router(中)(4)
- Vue.js 入门指南之“前传”(含sublime text 3 配置)