How To Remove Date From Blogger Post URL || by NiaDZGN

 


How to Remove Month & Year in Post URLs - Blogger is a platform for creating a website issued by Google. Blogger has many advantages, including it's free, in terms of security it's much safer than other CMS. This is because bloggers are under the auspices of Google. Blogger is widely used by people to build a website because this blogger is very easy to use. Even for beginners though.


In general, blogger is almost the same as other CMS like WordPress, Joomla, etc. The simple thing that differentiates is the blogger URL/Permalink. By default the blogger URL/Permalink is http://www.niadzgn.com/month/year/title-article.html. Having the month and year in the URL/Permalink certainly makes most bloggers feel uncomfortable because their blog's URL is very long. It's different from other CMS where the URL doesn't have month and year. So the URL becomes shorter. Just like this http://www.namadomain.com/judul-artikel.html


Actually, Google gives the month and year in the URL that has a purpose, which is to make visitors know when the article was created. And for sure it will be very useful for visiting. So removing the month and year in the URL is not recommended. However, because many bloggers feel uncomfortable with having the month and year in the URL/Permalink, many bloggers try to remove the month and year from their URL.

How to Remove Month & Year on Blogger URLs

Because more and more bloggers are finding out how to remove the month and year in the URL/Permalink, finally there is a way to remove the URL/Permalink in the blog URL/Permalink using Javascript. The method is also very easy. Straight to.


1. Enter Blogger

2. Click the Theme menu > Edit HTML

3. Next, attach this javascript code under the <head> code or above the </body> code

<script type='text/javascript'>
//<![CDATA[
// NiaDZGN v0.3.1
// Copyright (c) 2021-2022 Malik Ihtsham
// 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="&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>


4. Click Save Theme

Congratulations, now your blog URL is the same as WordPress with no month and year. I have tried the method above on my other blog and it works.


The result will be like this, for example, the original URL is


https://niadzgn.blogspot.com/2023/01/date-remove.html


After the month and year have been removed in the above way, the result will be like this:


https://niadzgn.blogspot.com/date-remove.html


Now your blog's URL/Permalink has become like WordPress, but what impact does removing the month and year in the URL have on SEO or Google's index?


Impact of removing month and year from URL

Removing the month and year in the blog URL, certainly has a negative impact on a blog, especially for blogs that are old and have lots of posts. This makes old posts not indexed by Google because the URL is considered to have changed. So to be indexed by Google, you have to submit articles or fetch as Google for all URLs.



Because many articles are not indexed by Google, of course, this will make the blog lose visitors drastically. So for old blogs, omitting the month and year in the URL/Permalink is not recommended. However, if the blog is still a new blog with no posts yet, then omitting the month and year in the URL is fine. Because there are no published posts yet.


Yes, that's more or less the way to get rid of the month and year in blog post URLs. With no month or year in the blog post, your blog URL will be like WordPress. URL format without month and year is certainly more SEO than URL with month and year. In addition, the display of blog post URLs has also become cooler.


If you are interested in tutorials about other bloggers, don't forget to read my article entitled how to easily make an HTML editor on a blog. Hopefully my article this time is useful for you. Thank you for visiting www.niadzgn.com. Greetings koplo.

2 Comments

  1. Give me Smartmag blogger theme password 😥😥😥

    ReplyDelete
  2. ╭ 📌 Plus-Royal Ui Version2 - A NextGen Premium Blogger Template (New SVG)

    │ Premium 🅾️

    │#Plus-Royal Ui #premium_theme #Blogger #Template ❗️

    ├ Password - www.niadzgn.com

    ├ Language - US (🇺🇸)


    ├ CREDITS - GOD KNOWS
    │---- ( https://t.me/nia_dzgn)

    ├👻Demo - plus-royalui.blogspot.com
    ├🧲Download - https://is.gd/71ScLd





    I need this Template. 🙏🙏🙏

    ReplyDelete
Previous Post Next Post