2016-03-25 16 views
0

サブドメインをパラメータとして使用するにはどうすればよいですか?たとえば、私のURLは次のようになります:サブドメインをパラメータとして取得する

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} 

答えて

関連する問題