I've found a solution to based my resource alias to the root of the site.
By going to system > settings
use_alias_path : no
This will change all your resource alias to be based from root.
Container1 > My page (resourcealias: mypage)
If you need the container path, just put the full folder path:
Resource alias: container1/mypage