From The Mailbag: How To Do a 301 Redirect

from Lynette Chandler 

Q: Hi Lynette! I have a question. I’ve used Website Grader to check how my WordPress blog is doing. They mention needing to have a 301 redirect to help the stats for visitors. I understand the need for doing this, but don’t understand how to implement it.

I’ve searched and gotten several explanations of the process, but for the life of me, I just can’t figure it out. Help!! You always explain “techie” things in a way I can understand. I look for your reply. – Mara B.

A: Hey Mara, you don’t need to look any further than Internet Based Moms itself. Here’s a great step by step article you can refer to.

You can also do the steps outlined in that article through your web host control panel. If you are using cPanel, Here’s how you do it. Look for the file manager.

File Manager

Click to open. Then click on the folder next to public_html

public_html

If your blog is installed in the top folder (e.g. mysite.com) then look for the .htaccess file in the public_html folder. If your blog is installed in a sub-folder (e.g. mysite.com/blog or blog.mysite.com) then look for that folder – in this case, the blog folder, open it by clicking the folder icon, then look for the .htaccess file in there. Once you locate the .htaccess file, click the name.

htaccess

On the top right corner of your screen you should see this list of links now. Click on Edit

Edit file

You should now have a new screen with a box. If the file is not empty, scroll to the very bottom, type Enter to go to the next line then paste this code:

Redirect 301 /oldfile.html http://www.site.com/newfile.html

Click save and you’re done. If you do not see a .htaccess file anywhere in those folders, you create it. Click Create File

Create file

On the top right corner of your screen you will see this box. Type in .htaccess (including the period in the beginning)

Name file

You can leave it as a Text Document. Click Create you’re done. Now you edit the file and paste the code above into the file and save. You’re all set.

Find further blogging ideas at BlogEnergizer.com and tech/marketing tips atTechBasedMarketing.com

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz
  • MySpace

Related posts:

Comments are closed.