我太新了服務器技術。我在單個域中配置多框架時遇到了一些問題。如何配置單個域的多框架?
的情況是,我有一個像下面
/web
/project-angular
/dist/index.html
/project-aurelia
/index.html
/project-wordpress
/index.php
我需要設置這些項目單個域與條件的文件夾結構是:
1 if user access domain.com then need to run project-angular/dist/index.html
2 if user access domain.com/blog/(*) then need to run project-wordpress/index.php
3 if user access domain.com/(*) then need to run project-aurelia/index.html
我在想這個實驗我的本地,所以我有訪問每個文件。
請建議我如何實現這一目標。我用.htaccess嘗試過,但它對我來說就像是外語。
編輯:
我不想將用戶重定向到另一個域。我只是想如果訪問domain.com然後根據上面的說明文件夾代碼應該運行。
謝謝。
[Htaccess可能將所有文件從一個域中的子目錄重定向到另一個域](https://stackoverflow.com/questions/16864690/htaccess-redirect-all-files-from-subdirectory在一個域到另一個域) –
否@Moriarty,建議的討論涉及到兩個域。在這裏我需要運行3個不同的框架與單個域。 –
可能通過子域 –