iis ISAPI_Rewrite 301 重定向域名

作者:袖梨 2022-06-25

# for isapi_rewrite 1.3 重定向域名
#重定向111com.net
rewritecond host: ^111com.net$
rewriterule (.*) http://111com.net$1 [i,r]
#重定向www.uuwar.org
rewritecond host: ^www.111com.net$
rewriterule (.*) http://www.111com.net$1 [i,r]

 

# for isapi_rewrite 2.x
rewritecond host: ^maphack.org$
rewriterule (.*) http://111com.net$1 [i,rp]
rewritecond host: ^www.maphack.org$
rewriterule (.*) http://www.111com.net$1 [i,rp]

# for isapi_rewrite 3.x
rewritecond %{http:host} ^maphack.org$
rewriterule (.*) http://111com.net$1 [nc,r=301] rewritecond %{http:host} ^www.maphack.org$
rewriterule (.*) http://www.111com.net$1 [nc,r=301]

 

# for isapi_rewrite 2.x
rewriterule ^/1.html$ http://www.111com.net/index.html [i,o,rp,l]

# for isapi_rewrite 3.x
rewriterule ^/1.html$ http://www.111com.net/index.html [nc,l,r=301,o]

相关文章

精彩推荐