2016-03-25 48 views
0

應該如何使用子域作爲參數?例如,我的網址可能如下所示:獲取子域作爲參數

http://user-a.example.org/media/fmgjksdjknw 
http://user-a.example.org/login/wdfjccpnvsd 
http://user-a.example.org/login/aeezosdmlkf 

如何根據以下模式路由我的應用程序?

http://{user}.example.org/media/{hash} 

回答