在URL C#中隐藏子域的子目录

时间:2013-07-22 16:55:54

标签: c# web-config subdomain

有人可以帮助我使用代码或网络配置隐藏C#中我的子域文件夹的所有页面的子域的子目录FOLDER

我使用此代码重定向到我的子域:

 protected void Page_Load(object sender, EventArgs e)
{
    if (((Request.ServerVariables["SERVER_NAME"].ToUpper().IndexOf("subdomain.com".ToUpper()) + 1) > 0))
    {
        Response.Redirect("/Folder/page.aspx");
    }
}

www.subdomain.con / FOLDER / page.aspx

www.subdomain.com/page.aspx

0 个答案:

没有答案
相关问题