WordPress多站點,使用雙層子目錄架站 (Nested Folder Paths及參考)
雙層子目錄及其構思
語言 = 第1層子目錄
/zh-HK/, /en-HK/, /zh-TW/, /en-SG/
文章內容分類 = 第2層
/hotel/, /trip/ as = 內容
1層 + 2層 = Nested Folder Paths
https://wpsetupmultisite.com/zh-HK/hotel/
https://wpsetupmultisite.com/en-HK/hotel/
你喜歡的話,可以玩到3層/4層,無限層都可以,看你有沒有需要
參考及啟發 = msn.com
https://www.msn.com/en-us (第1層子目錄)
https://www.msn.com/en-us/travel (第2層子目錄)
https://www.msn.com/en-us/foodanddrink (第2層子目錄)
本網站子目錄結構
子目錄 | URL Structure | Sites Folder Names |
---|---|---|
Primary | https://wpsetupmultisite.com/ | |
Sub1 | https://wpsetupmultisite.com/zh-HK/ | 2 |
2 | https://wpsetupmultisite.com/zh-HK/hotel/ | 3 |
3 | https://wpsetupmultisite.com/en-HK/ | 4 |
4 | https://wpsetupmultisite.com/en-HK/hotel/ | 5 |
5 | https://wpsetupmultisite.com/zh-TW/ | 6 |
6 | https://wpsetupmultisite.com/zh-TW/hotel/ | 7 |
7 | https://wpsetupmultisite.com/en-SG/ | 8 |
8 | https://wpsetupmultisite.com/en-SG/hotel/ | 9 |
9 | https://wpsetupmultisite.com/zh-HK/trip/ | 10 |
10 | https://wpsetupmultisite.com/en-HK/trip/ | 11 |
11 | https://wpsetupmultisite.com/zh-TW/trip/ | 12 |
支援插件
詳細請看英文版本 https://wpsetupmultisite.com/wp-multisite-nested-folder-paths/
- I Themes Security – Network Active and no need to export settings. Setting automatically goes to the sub site.
- Wp Rocket – It will have to be activated on each sub-site. Use the export and import setting for quick setup in sub-site if you are using the same WordPress theme. This site uses kadence theme.
- Short Pixel Optimizer – It seems cannot export and import the setting. Need to setup on each sub-site.
Waiting for answer
啟動多站點,雙層目錄代碼參考
SEO有趣數據
出Post時間:2021-10-1 2am
向Google 提交 Sitemap時間:2021-10-1 3:45am