久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: 誰幫我寫一條偽靜態規則 [打印本頁]

作者: zengrenrui    時間: 2022-1-6 22:40
標題: 誰幫我寫一條偽靜態規則
目前是這樣的規則
  1. <rule name="t" stopProcessing="true">
  2.                     <match url="^(.*)$" ignoreCase="false" />
  3.                     <conditions logicalGrouping="MatchAll">
  4.                         <add input="{HTTP_HOST}" pattern="^t.jatxh.cn$" />
  5.                     </conditions>
  6.                     <action type="Redirect" url="http://www.jatxh.cn/{R:0}" redirectType="Permanent" />
  7.                 </rule>
復制代碼
這個只能實現t.jatxh.cn/index.php?mod=topic&code=2156跳轉到www.jatxh.cn/index.php?mod=topic&code=2156

我想實現把t.jatxh.cn/index.php?mod=topic&code=2156跳轉到www.jatxh.cn
不管t.jatxh.cn后面的目錄啥全部跳轉到www.jatxh.cn

作者: 羅永浩    時間: 2022-1-7 02:23
先在后臺開啟偽靜態,然后將后臺給出的規則粘貼在偽靜態文件中,重啟apache就行了
作者: zengrenrui    時間: 2022-1-7 11:37
羅永浩 發表于 2022-1-7 02:23
先在后臺開啟偽靜態,然后將后臺給出的規則粘貼在偽靜態文件中,重啟apache就行了 ...

我想實現把t.jatxh.cn/index.php?mod=topic&code=2156跳轉到www.jatxh.cn
不管t.jatxh.cn后面的目錄啥全部跳轉到www.jatxh.cn
作者: 老周部落    時間: 2022-1-7 11:58
  1. <action type="Redirect" url="http://www.jatxh.cn/" redirectType="Permanent" />
復制代碼

作者: zengrenrui    時間: 2022-1-7 12:03
老周部落 發表于 2022-1-7 11:58

沒用   剛試了下
作者: zengrenrui    時間: 2022-1-8 17:57
有沒有高手??
作者: dashen    時間: 2022-1-9 22:44
<action type="Redirect" url="http://www.jatxh.cn/" redirectType="Permanent" />

上邊說的這個是對的

  1. <rule name="t" stopProcessing="true">
  2.     <match url="^(.*)$" ignoreCase="false" />
  3.     <conditions logicalGrouping="MatchAll">
  4.         <add input="{HTTP_HOST}" pattern="^t.jatxh.cn$" />
  5.     </conditions>
  6.     <action type="Redirect" url="http://www.jatxh.cn/" redirectType="Permanent" />
  7. </rule>
復制代碼





歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0