web.config配置设置首页跳转方法教程(自丢网原创教程)

[复制链接]
查看2591 | 回复1 | 2019-9-30 07:02 | 显示全部楼层 |阅读模式
web.config配置设置首页跳转方法教程(自丢网原创教程)
有时候需要首页做跳转,我们可以通过伪静态配置文件web.config来设置跳转到对应链接,下面自丢给大家讲解一下操作教程:
来个简单又方便站长们操作的菜鸟教程
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.     <location path="index.php">
  4.         <system.webServer>
  5.             <httpRedirect enabled="true" destination="http://www.zidiu.com" exactDestination="true" httpResponseStatus="Permanent" />
  6.         </system.webServer>
  7.     </location>
  8. </configuration>
复制代码
其中<location path="index.php"> 表示被指定的文件destination="http://www.zidiu.com"表示跳转的网址
自丢就讲解到这里了,希望对大家有帮助!
香蕉 | 2019-9-30 09:23 | 显示全部楼层
自丢网真心不错,学习教程网。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-16