Is this really needed ?
We can set the page title and the url of the page that is currently running the Piwik script is “captured” automatically by Piwik and that include URL that have been constructed by the server rewrite engine.

For exemple, say you have a site that do all it’s magic using only a single index.php file at the root and with some parameters like that :