Yes y've told you . Using routes .
Routes takes precedence over rewrite rules .
$users=User::newInstance->listAll();
Foreach (users as user){
IF (user is active)
{Osc_add_route(user['name'],user['name']...yourpluginfile
} }
Then function
User_redirect (){
If(params::getParam(action)=='pub_profile'){
Params:getParam(username);
Params.....( ipage);
Params.... (itemsperpage)
Osc_redirect_to(osc_get_route_url(username,itemsperpage,ipage)}
}
Osc_add_hook('init_user_non_secure')...
Ask someone to build a simple plugin for you.
This works well with under 5000-10000-40000 users depends on your server hosting setup.