- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
比如我在一臺主機上的IIS站點綁定了兩個域名a.com和b.com,現在都要做301要指向不同網址,那么如何寫web.config呢?代碼如下:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="301-1" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^a.com$" /> </conditions> <action type="Redirect" url="a.com要跳轉的域名/{R:0}" redirectType="Permanent" /> </rule> <rule name="301-2" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^b.com$" /> </conditions> <action type="Redirect" url="b.com要跳轉的域名/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite> <system.webServer> </configuration>
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP