Remove date and .html from Blogger Post URL: If you are new to blogging and want to start your blogging website then BlogSpot is a best platform to choose. However, to optimize your blog for search engines, you’ll need to implement a few SEO strategies. One of the factor is to remove the date from your BlogSpot URLs.
Here is the Blogger Post URL:
https://techeblogtalk.blogspot.com/2020/02/how-to-add-your-wordpress-site-to.html
As you can see in the above blogger URL, the Blogger adds the date and HTML at the end of the blogger URL. So, you have to make the URL SEO friendly.
https://techeblogtalk.blogspot.com/2020/02/how-to-add-your-wordpress-site-to.html
https://techeblogtalk.blogspot.com/how-to-add-your-wordpress-site-to
The second URL is SEO friendly as well as user-friendly.
Before continuing with how to remove the date from the Blogger URL, we will have to clear some basic terms such as What is URL and permalink.
Many of us think that a URL and a domain name are the same. But, it is not true. A domain is one part of a URL (Uniform Resource Locator).
A URL includes the domain name and details like the protocol and path, creating a web address that takes you to a specific page on a website.
A permalink is a link or URL of a post or webpage intended to remain unchanged in the future. It must be user-friendly and easy for users to type and remember. Also, change the published post permalink only if you write a new post.
If you change the post URLs, Google will be confused with both the URLs. And your post ranking may go down. So, the best way to change the URLs is to permanently redirect (301) from the old to the new.
Let’s better understand it by an example: If any of your content is ranked on Google with the date in the URL, And after changing the URL or removing the date from the URL, make your old URL (with date) 404, which means not found. When the users come to the old URL, they see nothing on that page, which affects the ranking of that content on search engines. So, use permanent redirection, i.e., 301, to redirect the old URL to the new one.
Step 1: Log in to the Blogger account and click on the Theme on the left-hand side.
Step 2: Now click on customize and then hit on edit HTML.
Step 3: After that, find the head tag with the help of Cntrl + F.
Step 4: Now, it’s time to paste the given code after the head tag.
<script type="text/javascript">
//<![CDATA[
// BloggerJS v0.3.1
// Copyright (c) 2017-2018 Kenny Cruz
// Licensed under the MIT License
var urlTotal,nextPageToken,postsDatePrefix=!1,accessOnly=!1,useApiV3=!1,apiKey="",blogId="",postsOrPages=["pages","posts"],jsonIndex=1,secondRequest=!0,feedPriority=0,amp="&"[0];function urlVal(){var e=window.location.pathname,t=e.length;return".html"===e.substring(t-5)?0:t>1?1:2}function urlMod(){var e=window.location.pathname;"p"===e.substring(1,2)?(e=(e=e.substring(e.indexOf("/",1)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../"+e)):(e=(e=postsDatePrefix?e.substring(1):e.substring(e.indexOf("/",7)+1)).substr(0,e.indexOf(".html")),history.replaceState(null,null,"../../"+e))}function urlSearch(e,t){var n=e+".html";t.forEach(function(e){-1!==e.search(n)&&(window.location=e)})}function urlManager(){var e=urlVal();0===e?accessOnly||urlMod():1===e?getJSON(postsOrPages[feedPriority],1):2===e&&(accessOnly||history.replaceState(null,null,"/"))}function getJSON(e,t){var n=document.createElement("script");if(useApiV3){var o="https://www.googleapis.com/blogger/v3/blogs/"+blogId+"/"+e+"?key="+apiKey+"#maxResults=500#fields=nextPageToken%2Citems(url)#callback=bloggerJSON";nextPageToken&&(o+="#pageToken="+nextPageToken),nextPageToken=void 0}else o=window.location.protocol+"//"+window.location.hostname+"/feeds/"+e+"/default?start-index="+t+"#max-results=150#orderby=published#alt=json-in-script#callback=bloggerJSON";o=o.replace(/#/g,amp),n.type="text/javascript",n.src=o,document.getElementsByTagName("head")[0].appendChild(n)}function bloggerJSON(e){var t=[];if(useApiV3||void 0===urlTotal&&(urlTotal=parseInt(e.feed.openSearch$totalResults.$t)),useApiV3){try{e.items.forEach(function(e,n){t.push(e.url)})}catch(e){}nextPageToken=e.nextPageToken}else try{e.feed.entry.forEach(function(n,o){var r=e.feed.entry[o];r.link.forEach(function(e,n){"alternate"===r.link[n].rel&&t.push(r.link[n].href)})})}catch(e){}urlSearch(window.location.pathname,t),urlTotal>150?(jsonIndex+=150,urlTotal-=150,getJSON(postsOrPages[feedPriority],jsonIndex)):nextPageToken?getJSON(postsOrPages[feedPriority]):secondRequest&&(nextPageToken=void 0,urlTotal=void 0,jsonIndex=1,secondRequest=!1,0===feedPriority?(feedPriority=1,getJSON("posts",1)):1===feedPriority&&(feedPriority=0,getJSON("pages",1)))}function bloggerJS(e){e&&(feedPriority=e),urlManager()}bloggerJS();
//]]>
</script>
Step 5: Click on Save. Now, the URL will be https://techeblogtalk.blogspot.com/how-to-add-your-wordpress-site-to
Click on the Setting >> Permalinks. Select the name option and click on save changes.
It can be removed by editing the .htaccess file.
Hit on the blog edit from where you can change the time and date stamp.
> Cannibalization: How to Identify & Fix Keyword Cannibalization to Boost SEO
> What is breadcrumb navigation for SEO?
> Mobile SEO Mistakes
> How do we improve page speed- The Complete Guide
> SEO Myths about website optimization
This post was last modified on July 27, 2024
We all know that the only developer has the power to build a website. There…
Bookmarking is a link-building strategy that acquires backlinks and drives traffic to the website. If…
How often have you read that if you want to take your website to the…
Successful Young Entrepreneurs In India: The dream weavers who planned ambition with innovation to sculpt tomorrow's…
Do you want to install Google Tag Manager in WordPress? Google Tag Manager is a…
Do you want to create a separate page for your blog section? As we all know,…
This website uses cookies.
Privacy Policy