I have a site that had URLs that looked like this all from the index.php page. It was a first attempt at writing for databases several years ago.
www.domain.com/index.php?p=page1 www.domain.com/index.php?p=page2
I have changed to a wordpress site and want to redirect anyone accessing the page to the new url. Such as
www.domain.com/page1 www.domain.com/cat/page2
I have the redirect written like this but it just redirects every one to the home page.
Redirect 301 /index.php?p=page2 http://www.domain.com/page_newname_2/
Thanks for any help, I have searched and can't seem to find an answer that is close or makes sense.
-Brian