
March 23rd, 2012, 01:50 PM
|
|
Registered User
|
|
Join Date: Mar 2012
Posts: 1
Time spent in forums: 15 m 55 sec
Reputation Power: 0
|
|
|
301 Redirect Help
I am not sure if I have this in the right spot, but here goes.
I had an issues with a word press installation. So I ended up re installing a fresh copy and loading my database to it. Plus I changed the directory it was in.
So now I have 2 directories with duplicate content. So I need to delete the old one and do a 301 redirect, but here is where I am lost.
mysitedotcom/old_directory/category/post_name/
mysitedotcom/new_directory/category/post_name/
are the same.
So How would I add a file, or modify the .httaccess where if someone clicked a link that was old it would take them to the new link, so I can delete the old installation.
For example there is an old link mysitedotcom/old_directory/...ake-cool-beans
and some one clicks it I want them to be routed to
mysitedotcom/new_directory/...ake-cool-beans
Any help would be appreciated.
|