ember.js - How to allow users to use custom domain name mapped to their user profile -


i building network platform user profiles follow url format of website.com/username. however, want allow premium customers able use custom domain names instead of website.com/username. premium user should able use external domain gets mapped sub-domain. using zend framework 2, emberjs, , amazon web services (route 53) , nginx.

thanks in advance help!

you have create own route-type that. there's routeinterface that. extend segment route that, you'll need segment. difference being segment needs match against database.

alternatively, create normal segment route :username parameter , match controller internally checks if given username exists|ispremium , depending on result, either forward userprofile or return home route.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -