[ticket/13192] Add method for generating valid user page links based on mod_rewrite

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13192