Hi

I have been going through certain tutorial for some hours now, to know more about URL rewriting.

But I have a doubt:

If my site is kind of displaying articles, a sample link could be:
Code:
http://www.mysite.com/my-article-name-123
Where, 123 is the article id and the rest of the string is the article title. If a user types this address on his/her browser, we could easily match the last article id using regular expression(in Rewrite rules).
So the rewrited URL might look something like this:
Code:
http://www.mysite.com/showarticle.php?id=123
But how would we give this link. I mean, this link should be coming from somewhere. That is how this link will be created ?
If I'm not using the URL rewriting, I would use the address:
Code:
http://www.mysite.com/showarticle.php?id=123
for hyperlinks displayed in my site.

Eg:
Code:
<html>
  <body>
    <a href="http://www.mysite.com/showarticle.php?id=123">My First Article </a>
  </body>
</html>
But in the case of URLs with article_names, how will I do it ?

Thanks in advance