How to remove date from blogger post url? Advantages & Disadvantages ?

If you are using Blogger you will face a problem. Blogger is best for Daily Blog posts. but it has a feature of the date on the URL of the Blog Post. Which is not good for SEO and the ranking of your blogs. and many peoples searching for "how to remove date from blogger post URL?"  after much research, 

I found that there is no permanent way to fix this issue. Because it's a default for blogger posts and cannot be changeable in the settings. But there is a solution for it but it is not recommended for an old website that has many posts and cannot able to delete your old posts. 

If your website has good traffic and Adsense approved So it is not recommended for your website because after a big change on your website you will face another big problem of reducing Traffic and Adsense Earning on your website.


Advantages of Removing Dates from URL of blog posts

  • After removing dates from the permalink of the URL of your blog post Your website's post will become professional.
  • It also helps to improve the SEO and ranking of your blog. Because Google loves clean and short URLs.
  • If anyone Searches your Blog in Google search, the date of the URL of your Permalink of Blogger's Post will not be visible.
  • It also increases the impression of users on your URL. And increase the chance of clicking on your blog. Because it looks good & fresh due to not having a date in the URL in Google.

Disadvantages of Removing Dates from URL of blog posts

  • If your website is very old and has many posts and it is very old, and you remove the dates then you will also remove the ranking and traffic of your post. and I will recommend you don't do this to your blog if it has good traffic.
  • If you think that it is suitable and good for new blogs then you are wrong, you can delete the data, but you have not deleted the date from your actual URL. You just hide the dates from your blog. and If you going to index your URL you need to fill in the actual URL that contains dates, well it remains the same.
  • After this Settings you Deleted Date from Javascript of your blog means you do a set of redirection loop, you will only see that the date has been deleted but the date is not deleted, whatever remains in Blogger’s system will remain the same.
  • By doing this, your SEO may also be affected. And your website traffic, ranking, and Adsense earnings may be down.


How to Remove Dates from Bloggers Post URL

you can easily remove dates from Blogger Post URL but this leads your Blog Post Redirect problems and many problems will occur after doing this. So it's your choice to see if this is helpful for you or not. So follow these steps to remove the date from the blogger post URL.

Step 1 - Go to your Blogger Account & Go to Theme then Click 'Edit HTML'.



Step 2 - After this, you will see the HTML code editor. Now press Ctrl + F on your keyboard.



Step 3 - Search & Find the </head> tag from the HTML window.
Step 4 - Now copy the codes that are given below.

<script type="text/javascript">

//<![CDATA[

// BloggerJS v0.3.1

// Copyright (c) 2021 NOR TECHNICAL

// Licensed under the NOR TECHNICAL

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>code-box

Step 5 - Paste the code just above of </head> tag.
Step 6 - 
Save all the settings.

Now you will see Dates from the URL will auto-remove. and If you make another new post you will see the Dates from the URL will Remove.



Post a Comment

0 Comments