301/302 Redirects: Understanding and Directing the Crawlers Part 3
Welcome to part 3 of the Understanding & Directing the Crawlers series. We’re going to discuss 301 & 302 redirects. 301/302 Redirects are used to either change the URL or retire an existing page with an updated page.
So let’s take a look at how to actually do this.
- A .htaccess file is required to do a redirect. It’s a file similar to robots.txt that sits on your server in which you can write your redirect instructions in there.
- If you already have a .htaccess file, the redirect instructions will go at the bottom of the file past all of the existing coding
- If you don’t have a .htaccess file, not to worry, creating one is simple. Open up a text file and name it “.htaccess”
- The redirect instructions should look like this
redirect 301 /inventory/product.html http://www.example.com/inventory/product1.html
redirect 302 /inventory/product.html http://www.example.com/inventory/product1.html
FYI – /inventory/product.html (the file you want redirected) http://www.example.com/inventory/product1.html (the URL you want redirected to)
Hope this helps! Stay tuned for content barriers next!
About the author
Maximus Kang is the Director of SEO Strategy & Founder of Ranking Channel, a Seattle-based SEO consulting agency. With enterprise level experience at Expedia and agency experience at Optify, his SEO knowledge covers a wide spectrum. He also started his very first profitable business as a 1st grader. Follow him on Twitter or connect with him on Facebook.
New to SEO? You can learn How to Win Users & Influence Google.




Leave a Reply