So you just changed the name of one of your website pages and now you have a "404 Error" showing up in your crawls stats. This can not only frustrate your users, it can also harm your sites search presence. In the video below, I'll share how and why you should redirect certain URLs on your website.
2. What is a redirect?
A redirect is used to indicate that content has moved from one URL to
another.
Example: Let’s say you want to optimize you URL string for search.
https://www.yoursite.com/old-
content.html
https://www.yoursite.com/keywo
rd
3. Why to Use Redirects
Redirects are essential in letting search engines
know when you have moved content.
Even after you move content, search engines will
the old URL and content in their index and will
return tat page in the search results until they
discover the page no longer exists.
Redirect help speed up this process.
4. When to Use Redirects
• You have old content that expires and needs removed
• You find that you have a broken URL that has links and traffic
• You change you hosting or CMS
• You want to implement a canonical redirect
• You change the URL where existing content can be found.
10. Types of Redirects
Not all redirects are equal.
While users may not notice the difference in the types of redirects
used, search engines will and the impact is huge.
The two main types of redirects are 301s and 302s.
11. 301 Redirects
• Know as “permanent redirects.”
• Tells the browser content has been permanently removed.
• Passed links authority and trust of the old link to the new link.
• Eventually replace old URL in the index.
12. 302 Redirects
• Tells search engines the content is only temporarily moved.
• Assumes that the page will eventually be reinstated.
• Does not pass link authority to the new page.
• Will stay in the search index.
13. Which is Best for SEO
For SEO purposes, always use 301 redirects.
Example:
Let’s say you spent a lot of time and effort acquiring links to your old
page. If you redirect the page and do not use a 301, all the work you
did will not carry over to the new URL.
14. How to correctly redirect a URL
There are many ways to approach this.
• .htaccess file
• Page Level (302 only)
• Mod_rewrite (most technical)
• Through your CMS
15. 301 Redirects via .htacces
• The .htaccess file is an Apache server configuration file.
• Be very careful editing this file. You can break stuff easily.
Single URL redirect
Permanent redirect from old-page.html to new-page.html.
• Redirect 301 /old-page.html http://www.mydomain.com/new-page.html
Entire domain redirect
Permanent redirect from all domain pages to newdomain.com.
.htaccess file should be at the old website's root directory.
• Redirect 301 / http://www.newdomain.com/
16. 301 Redirects via CMS
Using your CMS is a lot safer and easier.
WordPress: Has a number of plugins to help you out.
• Quick Page/Post Redirect Plugin
• Simple 301 Redirects
• Redirection
• 404 to 301
HubSpot: Auto redirects old URL to the new URL when changed.
17. Recap
• Redirects are used to point old URLs to new URLS.
• For SEO purposes, use a 301 redirect
• 301 redirects pass link authority of the old page to the new page.