如何将网址转发到适当的页面?

编程入门 行业动态 更新时间:2024-10-28 12:23:30
本文介绍了如何将网址转发到适当的页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何转发如下网址:

www.mysite/加入

到相应页面:

www.mysite/JoinOptions/MemberRegistration.aspx

有某种方法吗?

我正在使用DNN CMS,但是如果您不熟悉DNN并且仍然有重定向的解决方案,这将有所帮助。

I'm using a DNN CMS but if you're unfamiliar with DNN and still have a solution for redirecting that would be helpful.

谢谢, Matt

Thanks, Matt

推荐答案

您可以在DNN中创建友好的URL规则。在主机设置页面中,打开高级设置部分中的友好URL部分。在这里,您可以添加与。* / Join / Default.aspx 匹配的新规则,并将其替换为〜/ JoinOptions / MemberRegistration.aspx (我很确定使用该样式的URL可以正常工作,但是我知道您可以将其替换为〜/ Default.aspx之类的URL。 ?tabid = 423 )。

You can create a "friendly URL rule" within DNN. In the Host Settings page, open the Friendly URL section within the Advanced Settings section. From there you can add a new rule, that matches .*/Join/Default.aspx and replaces it with ~/JoinOptions/MemberRegistration.aspx (I'm fairly sure that using that style of URL will work, but I know that you can replace with a URL like ~/Default.aspx?tabid=423).

使用此方案,您需要确保IIS允许ASP.NET处理请求。最简单的方法是在文件系统中添加一个名为Default.aspx的 Join文件夹。

Using this scheme, you need to make sure that IIS lets ASP.NET process the request. The easiest way to do that is to add a "Join" folder in your file system with a file called Default.aspx.

更多推荐

如何将网址转发到适当的页面?

本文发布于:2023-10-31 19:26:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1547053.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   页面   网址

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!