In this post I’m going to show you how to change permalink in your wordpress website without losing traffic or search engine rank.
What is a permalink?
Permalink means Permanent Static hyperlink and this what the user type in the address bar. It is always unique and direct readers and search engine to your webpage or blog posts.It is recommend to choose the perfect Permalink settings depending upon the type of website at the very first stage instead of changing it in the middle.
What happen if you change permalink of your blog?
When you change Permalink type you need to overcome two main problems
1)Search Engine Optimization
2)Readers book mark.
Your permalink structure play an vital role in the search engine ranks. All search engines crawl the content of your post and store it in database by considering Permalink structure as one important parameter. If you are going to change Permalink structure without telling to search engines then definitely you are going to lose your traffic and user who bookmarked your favorite posts are presented with 404 Page errors. To overcome this two main problems you need to redirect your old permalink to new permalink.
Before proceeding into that let’s see how to select the best permalink structure for your website.
Choose SEO friendly permalink settings for your blog
WordPress offer different types of permalink such as Default, Day and name, month and name, numeric, post name and custom structure. You can change permalink from Dashboard > Settings > Permalinks
Default or Plain permalink
It create an unique ID say ?p=133 for each post. This 133 refer the serial number of the post. Search engine can also able to index this number but this is not recommended because it is not search engine friendly and doesn’t contain any focus keywords in the URL structure.
Day and name or Month and Name Permalink
This type of permalink are recommended for news blog. It does contain the blog postname in the URL which help search engine to index easily. Postname is added at the end so if your title is long then all the keywords in the title may not be read by the search engine.
It is similar to default or plain permalink but along with that it contain the archives text in the URL. It is also not a recommended one because its not search engine friendly.
This is most recommended type of Permalink settings and it is preferred by most of the bloggers. It contain the title as well as focus keywords of your post so it is readers friendly and search engine can also easily index them. When you are posting an evergreen content then you can prefer this type because search engine won’t reduce the page rank by publishing date.
I hope now you are clear with different types of Permalink and it purpose.Now let see how to redirect old url to this new url. To do that, you need to make a change in .htaccess file. It is located in the root directory of wordpress and you can access it either by using Cpanel or with the help of YoastSEO plugin(Most recommended plugin(free) for SEO blogs). There are many direct plugins available for this redirection but making change in .htaccess is more preferable than that because if you install a separate plugin then you need to keep it permanently to make redirection continue to work.
Just assume that you’ve changed permalink structure from Month and Name (http://www.YourDomain.com/2016/05/sample-post/) to Post Name (http://www.YourDomain.com/sample-post/) by navigating to Dashboard > Settings > Permalinks.
Go to google and type keywords to display any one of your post. In search results page, you can see the old hyperlink and if you click this link you’ll end up with 404 error because search engines take some time to index those updates. To avoid this you should redirect those to new permalink structure so that you won’t lose the pagerank as well as you are conveying to search engines that permalink structure has changed.
How to redirect to new permalink ?
1)Go to Permalink helper and enter the url of your site (start with http:// or https://)) in the first text box.
2)If your blog running in sub folder of the domain then you should enter the sub folder name in the second text box.
3)Select your old permalink structure in the radio button. If it is custom provide the custom format in the last text box.
Click generate Redirect button to get your redirects.
Copy the redirect for your blog . Now go back to your blog Admin Dashboard > Yoast SEO >Tools >File Editor. It shows the content of your .htaccess file. Prior to editing this make a copy and save it in your local drive. Add the redirect code at the top of .htaccess file (before #Begin WordPress) and save the changes.
That’s it redirection is set for your blog. Now you can check the redirection by repeating your posts search in google.
Let me know if you have any doubts If you want to use our service to redirect your blog please contact us via contact form.