So you’ve built your website using a Content Management System such as WordPress and don’t want to display pages with dynamic URLs such as http://www.drostdesigns.com/?p=123. Search engines will still spider this type of URL however you miss out on including your main keywords plus the URL is difficult to spell and remember.
How To 301 Redirect Dynamic URLS Using Mod_Rewrite