I would like to create a profile page for every account created. Once created the user profile can be accessed like
But before creation I should validate that the url is already available and not taken by existing url patterns. For ex: There will be a page like
Now "about" is not a valid user. But it is a valid url pattern. I should be able to prevent a user creation with a name 'about'. For that I need to check the url patterns in addition to check whether a user with that name already exists. How to do this?
An easy way out would be to have a url pattern like the following for the profile page: http://example.com/user/username
But I've a strong requirement to have profile page like the following http://example.com/username