How can I remove ?m=1 by blogger -url for your website

https://www.teckpas.com/

How can I remove "?m=1" by blogger -url.

In the blogging field, search engine website optimization is of paramount importance to increase visibility and attract more visitors. However,
blogger users often encounter common issues with URLs containing "M=1", which affects the SEO performance of their websites.

Table of Contents

In this article, we will consider detailed instructions for removing "M=1" by Blogger -Urls in JavaScript code.

Below you can find JavaScript code - Snippet with a description of its functionality. 

Why delete it? 

blogger -url to ?m = 1. One of the main reasons to remove the parameter M=1 from the blogger URL is to improve the SEO of your website. 

Search engines can consider pages with double content (caused by the parameter m = 1) as spam or poor quality that affects rankings. 

What's more, what is the existence of ?M=1. in the URL leads to indexing issues and confusion in search engine bots. Impact on the user experience: Aside from  the impact of SEO, what is the existence of ?M=1 also confused users with URLs, making the website look unprofessional. 

It can disrupt the flow of content and create unnecessary hurdles for visitors who are trying to access the website.

Understand the topic, First, go to Blogger -urls in your blogger -urls and if you have issues with SEO, the "M=1" parameter is added to allow bloggers to use the mobile-friendly version of the blog post.
  • Desktop Version. https://www.example.com/
  • Mobile Version. https://www.example.com/?m=1
However, it creates dual content issues as search engines may display the mobile and desktop versions of their contributions as separate pages. Identifying blogger template code Before continuing with the solution, it is important to identify the section of the blogger template code in which the URL will be generated.

This usually involves discovering the code. The code is responsible for generating Post -URLS, which may vary depending on the template. Implementing JavaScript code As soon as you find the corresponding section of your template code, it's time to implement a JavaScript solution.

Copy code and paste above of the </body> tag.

Copy your code
<script type='text/javascript'> //<![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); } //]]> </script>

Below is the JavaScript code - Snippet. Code Description.

The script checks the current URL with window.location.toString() ` and assigns it to the variable `uri`. Then, if you find url"%3d"(coded" = ") using indexof("%3d", ""%3d"), check if everything is removed after "%3D" with window.history.replaceState()" in window.history.replaceState() with substring() with substring(). Similarly, check "%3D%3D" (Coded "=="), "&m=1", and "m=1" in the URL and delete it accordingly. `//  [cdata [`and` //]>` 

Tags are used to wrap JavaScript code to ensure proper analysis by the browser. By implementing this JavaScript-Code snippet in your blogger template, you can effectively remove "?M=1" and other unnecessary parameters from the URL, improving the SEO performance of your website and improving the user experience. 

Additional tips:-  It is recommended that you test your transfer after implementation to ensure that you work correctly. Regularly monitor the performance and indexing status of your website. Distance from m = 1 from the URL. "By removing m=1 from bloggers, you can improve your website SEO and provide a better user experience." 

FAQ What is "?M = 1" in  Blogger -Url?

"?m = 1" is attached to the end of the blogger-url, which is commonly found in mobile versions of the website. This means that the page will be displayed in a mobile format.

Why should I  remove "m=1" from blogger -url?

Deleting "?m = 1" can help you create a cleaner and more consistent URL, especially if you want to maintain a consistent look on different devices.

How can I remove "?m=1" from blogger -url?

Usually you can remove "?m = 1" by accessing the blogger settings and adapting the mobile template or theme settings. Delete "?m = 1" affects the mobile functionality of my blog? It depends on your blog design and submission. In some topics, adjustments may be required to ensure proper mobile functionality after removing "?m = 1". 

Should I remove "?m=1" for SEO purposes? 

Clean URLs are advantageous for SEO, but removing "M=1" from the Blogger -URL does not clearly have a significant impact on your search rankings.

However, you can improve your user experience by providing consistent URLs across different devices. 

In summary, removing parameters from M=1 from blogger URL is extremely important to improve the  SEO and user experience of your website.

Follow the steps outlined in this article to clean up your URLs and optimize your website for better visibility and commitment. Take measures today to ensure that your blogger's website is equally optimized and accessible for both search engines and visitors.

Post a Comment

0 Comments