繁体   English   中英

从 URL 中删除/隐藏子目录

[英]Remove/hide subdirectory from URL

Currently www.brand-a.com and www.brand-b.com both point to the root folder containing a HTML landing page directing users to either /siteA or /siteB siteB both of which contain an installation of WordPress containing the content relevant to each牌。

- root
  |- index.html (landing page)
  |- /siteA/
    |- WordPress
  |- /siteB/
    |- WordPress

登录页面 (index.html) 目前可从brand-a.com or brand-b.com访问,主要站点可从品牌brand-a.com/siteA和品牌brand-b.com/siteB访问

鉴于当前的设置,是否可以通过 .htaccess 从 URL 中删除/隐藏子目录/siteA/siteB siteB,或者这只是将所有内容重定向回登录页面?

最好有第三个域作为两个品牌之间的桥梁吗?

例如

www.brand-bridge.com -> /index.html (landing page)
www.brand-a.com -> /siteA/
www.brand-b.com -> /siteB/

这将使每个区域保持独立,并允许域直接指向它们各自的内容。

最终只是想确定这是否可能以及我的选择是什么,如果您需要任何进一步的信息,请告诉我,我会尽我所能回答。

谢谢

Edit: The client as requested both www.brand-a.com and www.brand-b.com go to the landing page giving the user the option which site they would like to access regardless of which URL is used.

/* 您可以为站点使用任何域映射插件或重定向插件并重定向到原始域 */

暂无
暂无

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

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