-1

Say I have two domains from two different servers. A.com which people visit, and B.com which hosts the files they view. When a person views A.com/file they are actually viewing B.com/file. Of course for just a few pages I could do URL masking (like iframe), but that becomes quickly impractical when new pages are constantly being made.

So how would I go about creating a condition to automatically mask new links genreated on B.com for A.com?

(If B.com/new exists, entering A.com/new masks that).

Additionally, is it possible, through A.com, for all B.com links to open as A.com links?

Thank you very, very much.

4

1 回答 1

0

有几种方法可以做到这一点。您可以将 A.com 别名为 B.com,这就是 DNS 有时所做的。

此外,当您提供将页面定向到 A.com 链接的重定向协议时,B.com 链接可能会以 A.com 的形式打开,然后用户会将 URL 视为 A.com。

这正是您输入 fb.com 时发生的情况,您被重定向到 facebook.com

于 2013-07-06T19:31:32.733 回答