如何转发如下网址:
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.
更多推荐
如何将网址转发到适当的页面?
发布评论