从子域重定向到main [英] Redirect from subdomain to main

查看:84
本文介绍了从子域重定向到main的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iis上发布了一个网站。我通过使用iis的添加应用程序选项在其中添加了一个小的Web应用程序。问题是当我尝试从该应用程序主页重定向到主要网站主页时,它给出了错误无法找到资源。如何我可以重定向到主页吗?

请帮帮我......



提前致谢..

I have published a website on iis. I have added a small web application inside it by using "Add Application" option of iis.The problem is when i try to redirect from that applications home page to main websites home page it gives me error "the resource cannot be found".How can i redirect to home page?
Please help me...

Thanks in advance..

推荐答案

如果你想重定向到另一个域,你必须指定确切的URL,假设你想将表单mail.yahoo.com重定向到yahoo.com你必须提到

Response.redirect(yahoo.com)。所以,Ryan提到URL不正确!



另一方面,如果只有子文件夹和文件夹,你可以参考以下链接获取更多信息



http://www.codeproject。 com / script / Answers / Post.aspx?aid = 785843 [ ^ ]
If you want to redirect to another domain you have to specify the exact URL , let say you want to redirect form mail.yahoo.com to yahoo.com you have to mention
Response.redirect("yahoo.com"). So as Ryan mentioned the URL is not correct!

on the other hand if only there are sub folders and folder you can refer to the following link for more Info

http://www.codeproject.com/script/Answers/Post.aspx?aid=785843[^]


这篇关于从子域重定向到main的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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