URL with domain name

This may not be a Yii2-specific topic, but since I am using Yii2 I thought I would ask here.

I am creating a web site that many users can log into and get to their own homepage specific to their account. My problem is that to get to their account, I need to pass an id parameter into the action function. Is it possible for me to create some sort of url routing rule in case they want to use their own domain name without parameters to get to this page instead of the current way using parameter passing?

Sorry if this is too basic, but I can only find things like pretty urls which seem to still require passing the ids.

This doc should help you : http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html#rules-with-server-names