A System plugin rewrites both incoming and outgoing URLs.
For incoming it performs a similar function to mod_rewrite in .htaccess file.
For outgoing changes all the URLs on the HTML page.