title: Rewrite my url to a dynamic one
body: <p>I am having a url like </p>
  
  <ul>
  <li><a href="https://www.example.com/profile.php?id=1064" rel="nofollow">https://www.example.com/profile.php?id=1064</a></li>
  </ul>
  
  <p>I need to change this url to </p>
  
  <ul>
  <li><a href="https://www.example.com/USERNAME" rel="nofollow">https://www.example.com/USERNAME</a>.</li>
  </ul>
  
  <p>This username is taken dynamically from the database with the entry id=1064</p>
  
  <p>Please advice me a solution to rewrite my url to the above format</p>