I'm trying to understand how the mod_rewrite works. For example, if I have a URL like:
example.com/user.php?id=123
And with the mod_rewrite I can create the URL Like:
example.com/user/123
Now this is ok, but on other locations in my application, I have linked to the user page using the old format , eg:
<a href="user.php?id=123">123</a>
Now does it mean that I would need to change all these links manually and should link according to the new format? eg:
<a href="user/123">123</a>
Or should this be done with the mod_rewrite too? I'm not using any PHP framework.