Hello everyone.

I decided to optimize my dynamic urls. It first looked like:
www.site.com/index.php?page=profile

Now it looks like:
www.site.com/profile/

But still the dynamic URL is accessible for both google and the visitor. When i try to redirect (301) all the old dynamic urls to the seo urls i get this as a result; www.site.com/profile/?page=profile and again accessible for google and visitors.

Is there a way to avoid this and let the old dynamic urls automaticly redirect to the new seo urls without any dynamic parameters so it wont screw up my rankings in Google?

Thanks a lot for your time!