简体   繁体   English

URL重写域到页面

[英]URL-rewrite domain to page

I have a web application that can be accessed by for example: someapp.example.com. 我有一个可以例如通过someapp.example.com访问的Web应用程序。 A specific subdirectory of pages should however be accessible by anotherexample.com. 但是,页面的特定子目录应该可以由anotherexample.com访问。 How can I accomplish this via URL rewriting? 如何通过URL重写完成此任务? Please note that the subdirectory's pages are not accessible from the someapp.example.com. 请注意,无法从someapp.example.com访问子目录的页面。

I already tried something like thing, resulting in a URL rewrite 500.50 error: 我已经尝试过类似的操作,导致URL重写500.50错误:

(?=www\.)?anotherexample\.com(?=\.localtest\.me)?

You would set up 2 websites and corresponding virtual directories for the sub directory, each serving the set of pages required. 您将为子目录设置2个网站和相应的虚拟目录,每个目录都提供所需的页面集。 There is no need to use URL rewriting from what I can see. 根据我所看到的,无需使用URL重写。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM