帮助我在IIS7中进行URL重写 [英] Help me on URL REWRITE IN IIS7

查看:80
本文介绍了帮助我在IIS7中进行URL重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



最近我将网站从http迁移到https(我将端口号设为4431.我知道hhtps的默认端口号是443.但是我的客户想要4431端口的https).现在我的网站网址是
https://moss:4431/law/uca/.这里moss是服务器名称.

现在我的问题是我希望访问我的网站,甚至可以访问来自http://moss:4431/law/uca/的客户端请求.请帮助如何使用IIS7中的URL重写来实现此目的.



Recently i migrated a site from http to https(i taken port number as 4431.I knew the default port no:443 for hhtps.But my client want https for 4431 port).Now my site URL is
https://moss:4431/law/uca/ .Here moss is the server name.

Now my question is i want my site to be accessed even client Request from http://moss:4431/law/uca/ .Please help how to do it using URL Rewrite in IIS7.

推荐答案

U可以在ur web.config中定义

U can define in ur web.config

<rewriter>
    <rewrite url="http://moss:4431/law/uca/(.+)" to="https://moss:4431/law/uca/


1" / > < /rewriter >
1 " /> </rewriter>


Scott Gu的博客中有内容,当您用Google搜索"asp.net url rewriting"时,Google显示超过150万个结果:

Scott Gu的博客条目 [ ^ ]
Scott Gu has something in his blog, and google shows OVER 1.5 MILLION results when you google "asp.net url rewriting":

Scott Gu''s Blog Entry[^]


这篇关于帮助我在IIS7中进行URL重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆