URL重写+默认根应用程序 [英] URL Rewrite + Default Root Application

查看:70
本文介绍了URL重写+默认根应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,
我有一个主机,我需要正确地重定向两个网站,以及在ASP上运行的两个单独站点中的子文件夹. NET的物理布局如下.


\ root
\ site1
\ site2

从逻辑上讲,从注册的域托管中,您可以按以下方式访问网站

www.domain.com/site1
www.domain.com/site2

根据需求,我需要表现如下.

对于site1

site1.domain.com

对于site2

site2.domain.com

Dear,
I have a hosting which I need to redirect correctly two websites, subfolders in two separate sites running on ASP. NET and the physical layout is as follows.


\ root
\ site1
\ site2

Logically, from the registered domain hosting, you can access web sites as follows

www.domain.com/site1
www.domain.com/site2

According to the requirement, what I need is to behave as follows.

For the site1

site1.domain.com

For site2

site2.domain.com

推荐答案

您可以尝试这个吗.
子域重写
could you try this one.
Sub Domain Rewrite


这篇关于URL重写+默认根应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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