How to hide =m1? In Blogger post or website

What is =m1? And how to hide 

 Hiding the =m1 query parameter in a website or Blogger post can be done by using a redirect rule in the .htaccess file on the server.

Ya girl represent the test and pictures  the text is how to remove ?m=1 from url in Blogger
How to remove ?m=1 in Blogger post 

The .htaccess file is a configuration file that controls the behavior of the web server. It can be used to control various aspects of the server, including redirecting requests.


      The following code snippet can be added to the .htaccess file to redirect any requests with the =m1 query parameter to the same URL without the parameter:

How to hide =m1? In the url of a blogger post on mobile with JavaScript 

  • To hide the =m1 parameter in the URL of a Blogger post on mobile, you can use the following code:

  • Go to your Blogger dashboard and select the "Template" tab.

  • Click on "Edit HTML" to access the HTML code of your template.

  • Search for the following line of code: </body> and put my code above the body 
  • Click save button now your website hide =m1?

Video with complete instructions 

How to remove m1 form Blogger post in hindi 

Code here click copy text to copy👇👇👇


<!-- Blogger Scripts -->
  <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>


This will redirect any requests with the "m1" parameter in the URL to the same page without the parameter, effectively hiding it from the user.

The code above uses the RewriteEngine to enable the use of rewrite rules. The RewriteCond statement specifies a condition that must be met for the rewrite rule to be applied. In this case, it checks if the query string (the part of the URL after the "?") contains the "m1" parameter. If the condition is met, the rewrite rule is applied.

The rewrite rule uses a regular expression to match the requested URL and capture the parts of the URL that should be preserved. The "^(.*)$" part of the rule matches the entire requested URL, while the parentheses capture the parts of the URL that should be preserved. The "$1" and "%1" parts of the rule refer to the captured parts of the URL.


The final part of the rule, "/$1?%1%2" specifies the URL that the user should be redirected to. In this case, it's the same URL as the requested URL, but without the "m1" parameter.

It's important to note that some changes in the code snippet may be needed as per your server settings. Also, hiding the =m1 parameter in the URL may not be a good practice as it could cause issues with tracking and analytics of the website.

Comments

Popular posts from this blog

Sproutgigs real or fake || Sprout gigs complete video details

Uhive token price – legit or scam,

Top 10 handsome man in the world 2023 with pictures

How to create YouTube channel ( discover FAQ about YouTube)

Evening jobs to make extra money