[英]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.