{"id":4307,"date":"2016-08-05T19:29:43","date_gmt":"2016-08-05T19:29:43","guid":{"rendered":"http:\/\/techblogng.com\/?p=4307"},"modified":"2023-04-18T13:40:07","modified_gmt":"2023-04-18T12:40:07","slug":"301-redirect-old-posts-wordpress","status":"publish","type":"post","link":"https:\/\/hiideemedia.com\/301-redirect-old-posts-wordpress\/","title":{"rendered":"How to 301 Redirect Old Posts URL Without Altering SEO & Backlinks"},"content":{"rendered":"
Permalinks structure are very important in SEO and have to be seriously dealt with. The best is making use of SEO optimized permalinks which can boost website ranking on search engines. Here at https:\/\/hiideemedia.com we make use of the custom month and year permalink before (for example https:\/\/hiideemedia.com\/2016\/05\/web-design-tips-for-a-pro-website.html<\/a><\/em><\/strong>), this permalink contains year, month and post name but I now think of using post name only to make it https:\/\/hiideemedia.com\/web-design-tips-for-a-pro-website\/<\/a><\/em><\/strong>. If you open the two links in your browser you will notice they are going to the same page on this website. That is exactly what I want to teach you today, and it is known as 301 Redirect<\/em><\/strong>. A 301 redirect is a permanent redirect which passes between 90-99% of link juice (ranking power) to the redirected page. 301 refers to the HTTP status code for this type of redirect.\n<\/p><\/blockquote>\n The 301 redirect is just for redirecting old permalinks to new permalinks, telling the browser the article have been permanently moved to another url. This is very important after changing permalinks because some websites might have linked to those pages\/posts on your own blog, so to avoid the visitors from landing on 404 error page the browser will automatically redirect them to the new url. Once you perform the 301 Redirect, there is no need of worrying about loss in traffic from search engines. Your search engines visitors will be automatically redirected to the new url and search engine will also start updating the permalinks till everything is completely set. Changing WordPress Permalink is very simple, all you have to do is; 1. Generate Redirect Code from Yoast Permalink Redirect Generator<\/a>. Editing .htacess is very simple but care must be taken while editing it because any mistake there can cause your website close down. .htaccess file can be editing from file manager and from wordpress dashboard. Permalinks structure are very important in SEO and have to be seriously dealt with. The best is making use of SEO optimized permalinks which can boost website ranking on search engines. Here at https:\/\/hiideemedia.com we make use of the custom month and year permalink before (for example https:\/\/hiideemedia.com\/2016\/05\/web-design-tips-for-a-pro-website.html), this permalink contains year, month and post […]<\/p>\n","protected":false},"author":2,"featured_media":11335,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[36,46],"tags":[],"class_list":{"0":"post-4307","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-blogging","8":"category-tutorials"},"yoast_head":"\n
\n<\/p>\n
\nNow, I know what you want to ask is how can the 301 Redirect be done. Don't be in a hurry, I will explain everything to you.
\nNote: The below guide is useful for those that want to change from any permalink structure to post-name permalink structure only.<\/b>
\nHow to Change Permalink Structure<\/h2>\n
\n1. Visit WordPress Dashboard.
\n2. Go to Settings >> Permalinks<\/strong>.
\n
\n3. Now change your permalink structure to the new one you want and save changes. For this tutorial choose the post name option i.e. (https:\/\/hiideemedia.com\/sample-post\/)<\/p>\nHow to Create 301 Redirect for All WordPress Posts<\/h3>\n
\n2. While on the page, input the url of your website. If you installed your wordpress in sub-folder input the subfolder otherwise leave it empty. And finally choose you old permalink structure.
\n
\n3. After all field have been taken care of appropriately, click on the Generate Redirect Button<\/strong>.
\n
\n4. There you have the code. Now Paste the redirect code into your .htaccess<\/strong> and test whether it\u2019s working. Add the redirect code to the the top of your .htaccess file.
\nNOTE: Make a backup of your .htaccess file before editing it.
\nHow to Locate and Edit .htaccess file<\/h4>\n
\nTo edit it from file manager<\/strong>; locate .htaccess file in the root of your wordpress install and edit it. You may need to allow access to show hidden file before you can see the file.
\nTo edit from Dashboard;<\/strong> Instal SEO plugin by Yoat. Go to SEO >> Tools >> File Editor and make any changes you want then save.
\nIf you have any problem or any question, feel free to submit them and I will reply as soon as possile.<\/p>\n","protected":false},"excerpt":{"rendered":"