title: Rewrite my user id URL to a physical page on my website?
body: <p>Good day,</p>
  <p>I want to rewrite my user id URL to a physical page on my website.</p>
  <p>This is a login PHP MySQL system and each user (client) has an ID assigned to them in MySQL. I want to give each user (client) a unique home page</p>
  <p>So the client list are as follow:</p>
  <pre><code>Client1 - Client ID = 341
  Client2 - Client ID = 342
  Client3 - Client ID = 343
  </code></pre>
  <p>Currently, the user login to the site and gets redirected
  from:
  http://localhost:8888/report.mark1/user.php?id=341
  to:
  http://localhost:8888/report.mark1/341 (this works perfectly)</p>
  <p>But I want to change this to the following:</p>
  <p>From: http://localhost:8888/report.mark1/341
  To: http://localhost:8888/report.mark1/client1/home</p>
  <p>I want to do this for the other clients as well:</p>
  <p>From: http://localhost:8888/report.mark1/user.php?id=342
  To: http://localhost:8888/report.mark1/client2/home</p>
  <p>From: http://localhost:8888/report.mark1/user.php?id=343
  To: http://localhost:8888/report.mark1/client3/home</p>
  <p>this is the current .htaccess file code:</p>
  <pre><code>RewriteEngine ON
  RewriteBase /report.mark1/
  ##External redirect change of URL rules here.
  RewriteCond %{THE_REQUEST} \s/(report\.mark1)/user\.php\?id=(\d+)\s [NC]
  RewriteRule ^ /%1/%2? [R=301,L]
  
  ##Internal rewrite to user.php rules here.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(?:[^/]*)(\d+)/?$  /report.mark1/user.php?id=$1 [QSA,L]
  </code></pre>
  <p>I hope this helps a bit more :)</p>