Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个域:domain1.com 和 domain2.com 我的主域是domain1.com,我想加载 domain2.com 与 domain1.com 相同的所有页面
例如,这是来自主域的新闻:
http://domain1.com/index.php?newsid=23
我如何通过此链接显示该新闻:
http://domain2.com/index.php?newsid=23
我不想使用重定向或类似的东西。htaccess 有什么技巧吗?我希望你们能理解我的问题。
您应该在 domain1.com 虚拟主机配置文件中添加 domain2.com 别名。