Type Here to Get Search Results !

How To Remove Date From Blogger Post URL


What is a Permalink in Blogger?

A permalink, short for "permanent link," is the URL structure of a website. For example, in the URL

 "https://www.careerinitfield.in/2024/02/blog-post.html," the first part

 "https://www.careerinitfield.in" is the domain address, and the second part after the "/" is its permalink.

Disadvantages of Removing the Date and HTML from Blogger URL

Removing the date from Blogger post URLs can have a negative impact on SEO for established bloggers. It can lead to 404 errors for previous posts, causing a loss in ranking. Additionally, using JavaScript to remove the date and HTML extension can increase page load time.

Advantages of Removing the Date and HTML from Blogger URL

1. SEO Optimization: Google recommends using permalinks of fewer than 75 characters. Removing the date and HTML extension can reduce the length of your permalink, making it more SEO-friendly.

2. Professional Look: Removing the date and HTML extension can give your blog posts a more professional appearance.

3. Timelessness: Removing the date from the URL can make your content appear timeless, as it doesn't reveal when the blog post was published.

4. SEO Best Practices: Using extensions in URLs is not recommended by SEO best practices, so removing them can improve your site's SEO.

How to Remove the Date from Blogger Post URL?

Before making any changes, it's essential to back up your blog. Follow these steps carefully:

1. Log in to Blogger and click on the "Theme" section.

2. Click on the three dots and then click "Edit HTML."

3. Press "Ctrl + F" and search for

and paste the below code just above the </Head> tag.

<script type="text/javascript">
//<![CDATA[
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> 

tag. Paste the provided code just above the</Head> tag.

4. Click on save and refresh the page to apply the changes.

How to Remove "m=1" from Blogger URL?

To remove "m=1" from Blogger URLs, follow these steps:

1. Log in to Blogger and click on the "Theme" section.


2. Click on the three dots and then click "Edit HTML."

3. Press "Ctrl + F" and search for</Body>


<script>/*<![CDATA[*/ var uri = window.location.toString(); if (uri.indexOf("%3D","%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D")); window.history.replaceState({}, document.title, clean_uri);} var uri = window.location.toString(); if (uri.indexOf("%3D%3D","%3D%3D") > 0) { var clean_uri = uri.substring(0, uri.indexOf("%3D%3D")); window.history.replaceState({}, document.title, clean_uri);} var uri = window.location.toString(); if (uri.indexOf("&m=1","&m=1") > 0) { var clean_uri = uri.substring(0, uri.indexOf("&m=1")); window.history.replaceState({}, document.title, clean_uri); } var uri = window.location.toString(); if (uri.indexOf("?m=1","?m=1") > 0) { var clean_uri = uri.substring(0, uri.indexOf("?m=1"));window.history.replaceState({}, document.title, clean_uri);}; var protocol=window.location.protocol.replace(/\:/g,''); if(protocol=='http'){ var url=window.location.href.replace('http','https'); window.location.replace(url);} /*]]>*/</script>

tag. Paste the provided code just above the</Body>tag.

4. Click on save and view your blog from a mobile phone to see the changes.

How to Revert Back to the Old Permalink Structure?

To revert back to the old permalink structure, follow these steps:

1. Log in to Blogger and click on the "Theme" section.
2. Click on the three dots and then click "Restore."
3. Click on "Upload" and select the backup file to restore the old permalink structure.

How to Customize the Permalink in Blogger?

To customize the permalink in Blogger, follow these steps:

1. Visit the post, then in the right sidebar, under "Post Settings," click on the Permalink option.
2. Choose "Custom Permalink." Note that this option is only available when you haven't published your post. If you have published your post, revert it to draft to see this option.
3. Change the Permalink URL and click on "Done."

By following these steps, you can customize your Blogger permalink and improve your blog's SEO.

Post a Comment

0 Comments