Forum Moderators: open
Do a site search (top of page) on mod_rewrite and url redirection; there's plenty of discussion here with instruction on how to do it and links to the official documentation.
My site is indexed with www and without www. And the pages were indexed with all kinds of '?...' user tracker codes. Whatever people used to link to me was indexed. And all these pages had a low PR (Split PR). Finally I asked all the linkers to link to me with the exact same URL. Now I have fewer URLs indexed, but with higher PR.
Google indexed 6000 pages of my site, while my site has only around 2500 pages.......
Be aware of this before you start a linking campaign and decide how you want to be indexed.