mod_rewrite automatically

how can i do that? i don’t want to modify every link in my site… it is possible?

Should have thought of that before building your site and used routing versus mod_rewrite.
If it is that much of a hassle, don’t bother with rewriting urls.