How To Remove Date and .html From Blogger URL

0
200

How to remove the date and time from the blogger URL? Is it Possible? What happens if I remove the date from the URL?

Don’t worry I will give all the answers to the questions I was mentioned above. Yes, it is very easy to remove date and .html from blogger post permalink, you can do it very easily by putting a script in your blogger template. Today In this article I will quickly tell you the process of how you remove time, year, date, month, and .html from your blogger post URLs. After that, the URL Looks Clean and professional and it is one of the factors to get ranked on Search Engines like Google, Bing, Yahoo, Yandex, etc.

How To Remove Date and .html From Blogger URL

Generally Blogger URLs (or) Blogspot URLs looks like:

https://sabtemplate.blogspot.com/2021/03/androstore-responsive-apk-downloading.html

After following the steps given in this article, you can change your blog URLs like this:

https://sabtemplate.blogspot.com/androstore-responsive-apk-downloading

Advantages Of Removing Date Form Blogger Post URL

First of all, you have to understand the Benefits of Removing Date From Blogger Post URL

  • It will make your blogger Post URL Short.
  • Short URL is good for SEO.
  • Removing or hiding Date From Blogger will make your content Evergreen.
  • It Won’t Let visitors identify when the post is actually published.
  • It will give professional look to your blog post.
  • Short URL easy to read that help google and other search engine bots to rank your blog post.

Disadvantages Of Removing Date From Blogger Post URL

  • Removing date from Posts URL is good, but only for new bloggers, Who has just started their blog and did not publish much content on their blog.
  • Removing the date from the blogger post, showing 404 which means the page is not found “Error”. Because after changing the permalink, your previous posts which are already indexed in Google showing 404 Errors to the Visitors. This might lead indexed posts to be disappeared from Search Engines for a while. So beware of changing Post URL if, it is ranked in Google Searches.
  • If you have already posted tons of Blog posts, and your blog posts are ranking in Google Search Engine Pages where you get millions of traffic. Then, you shouldn’t take risk of changing the blog post URL. Because it will affect negatively and impact the SEO of your blog and decrease your earnings.
  • If you have already published tones of posts and the posts is ranking on Search engine then we strictly advise you not to change your blog Permalink.

How To Remove or Hide Date and .html From Blogger Post URL Step By Step.

Now I will tell you the step-by-step process with the help of screenshots.

STEP 1: First Login Into Your Blogger Dashboard and choose the blog in which you want to remove the date

Login Into Your Blogger Dashboard and choose the blog in which you want to remove the date from the post URL

STEP 2: Now After login the dashboard click on the theme Section

STEP 3: After clicking on the Theme section, click the customise button and then “Edit HTML” button.

After clicking on the Theme section, click the customise and then “Edit HTML” button.

STEP 4: Now, Find out the <head> tag here. You can also use the shortcut key Ctrl+F to find the <head> tag.

Now, Find out the<head> tag here. You can also use the shortcut key Ctrl+F to find the <head> tag.

STEP 5: Now, Copy the Code Given down below and Paste it after the <head> tag, and click on the Save theme.

Now, Copy the Code Given down below and Paste it after the<head> tag, and click on the Save theme.

Copy the code below:

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

Now, the date and .html are permanently removed or hidden from the blogger’s post URL. If you are facing any problem then comment down below I will try to solve your problem.

What happens if I remove the date and time from the blogger post URL ?

After Changing the blogger post permalink, you might get 404 errors on existing posts. But don’t worry We have given a solution for that too:

If your blog is new and hasn’t published any posts yet. Then you may not face any errors or issues. But if you are already published some posts then we strictly advise you do not ever change your blogpost Permalink.

If any case you have published some posts, then you need to redirect those old posts (www.yoursite.com/2021/07/sample-post.html) to the new URL (www.yoursite.com/sample-post) as soon as possible because if your old post URL rank on search engine and after that you remove the date from the post URL then it will affect your blog traffic.

How to Redirect these Old Posts Links to the New Links ?

This is very simple, you can do it manually by following the steps given below:

STEP 1: login into the Blogger Dashboard, Go to the Settings. Scroll down below till you get “Errors and Redirects” heading.

login into the Blogger Dashboard, Go to the Settings. Scroll down below till you get “Errors and Redirects” heading.

STEP 2: There you will see “Custom Redirects” Option, Click on it and You will get a Popup, Click on Add,

STEP 3: There you need to paste old url and new url of every post under from and to.

How to revert back to Default Blogger URLs ?

  1. Again Go to Theme Section click the customise button.
  2. Then click edit HTML.
  3. Remove the Code which you have added previously after the <head> Tag and Save the theme.
Remove the Code which you have added previously after the head Tag and Save the theme.

LEAVE A REPLY

Please enter your comment!
Please enter your name here