当前位置:web 服务器 > IIS >>

iis ISAPI_Rewrite 301 重定向域名


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

 

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

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

 

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

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

补充:网页制作,设计基础
Apache
IIS
Nginx
Tomcat
如果你遇到web 服务器难题:
访问www.zzzyk.com 试试
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,