If you are wondering what the above code means, here’s an explanation:
- Redirect 301 - tells the search engines and also browsers that your page has been permanently moved.
- /oldpost.html gives the location of the old page
- https://www.mypost.com/newpost is the location of the new page that you want the webserver to redirect your visitors to. For this code to work properly, it requires the complete URL.
Please note that if you are moving multiple pages, it is important to include the redirect statement for each page that you’re moving and I will always recommend that you have a unique line for each page. If you want search engines to pick up these commands then having a unique line for every page is the best thing to do.
In conclusion,
301 redirects have a series of benefits when it comes to Search Engine Optimization. I hope you find it easy to set up the 301 redirect process correctly by following the steps in this.
I wish you the best of luck in the moving process.
Regards!
Join the Discussion
Write something…
Israel17
Premium
Hey Thumpsy, kudos for coming up with such an extremely crucial area of SEO! Many have truly got a ton of 404 error pages on their websites as a result of not minding the rule guiding redirection. Your training should be a complete bailout for every newbie and veteran blogger out there. Keep them coming.
Israel Olatunji
Israel Olatunji