how-to: 301 redirect in wordpress
Do you have an old URL that you want to redirect to a new one? Or a broken URL that needs to be redirected to a new page?Here’s how you can do it using a simple WordPress plugin:
- Go to “Plugins” > “Add New”.
- Search for “SEO Redirection”.
- Click “Install Now”.
- Click “Activate”.
- Now go to “Settings” > “SEO Redirection”.
- Click “Add New” button
- Now add the broken or old URL on the first field called “Redirect from”, then add the new URL on the “Redirect to” field. For example, I am redirecting http://www.duhgeek.com/this-is-broken to http://www.duhgeek.com.
- Click the blue button called “Add New”.
- Now test the old URL and see if it’s redirecting to the new one.
You’re officially done!
If you have the WordPress SEO by Yoast plugin..
If you have WordPress SEO by Yoast, you can also use it to do 301 redirect so you don’t have to install another new plugin. But you need to be a little more careful though. Here’s how you can redirect .
- Go to “SEO” from the left sidebar menu.
- Edit the .htaccess file.
- Add a line like this one: Redirect 301 http://www.duhgeek.com/this-is-broken http://www.duhgeek.com/this-is-new
- Replace the URLs with your own. Replace the first URL with the old URL you want to redirect and then replace the 2nd URL with the new URL.