Brian York
Brian York

Reputation: 3

htaccess redirect from variable URL to clean URL

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

Upvotes: 0

Views: 114

Answers (1)

Grmn
Grmn

Reputation: 544

Redirect old page to new post page using Wordpress!

if so, go to plugins, add new, enter Redirection. The very first plugin by John Godley will do just what you need.

Manual download page for plugin redirection

after installing you will find it in Tools -> Redirection

Upvotes: 1

Related Questions