How to Remove ?m=1 From Website URL On Mobile

How to Remove ?m=1 From Website URL On Mobile

How to Remove ?m=1 From Website URL On Mobile

If you have visited your WordPress on blogger blog on your mobile device and you have noticed that your URL contains ?m=1 or m=1 you don't have to worry about it because it automatically adds up if your website is viewed on mobile devices means that mobile is equal to true, here digit 1 represents that it's true.

If you don't remove this m=1 it will not affect your blog in any condition but to make your website URL user-friendly you have to remove this so that your website looks professional.

Today in this article I will tell you how you can remove that m=1 from the URL if your website is viewed on mobile devices.

My website also shows this m=1 if it is used over mobile devices you can check it. It is not added by you nor by your website template it is automatically added by blogger CMS or WordPress CMS but it is up to you if you want to remove this or not.

So now if you want to remove this you will have to follow the steps which are provided below and do as it is said without leaving any step only two-three steps are required to do that.

Steps to follow:

  1. Go to your template editor whether in blogger or in WordPress where you can create widgets.
  2. Make a new HTML/JavaScript Widget and paste the code provided below into that widget
  3. <script>
    var curl = window.location.href;
    if (curl.indexOf('m=1') != -1) {
        curl = curl.replace('m=1', 'm=0');
        window.location.href = curl;
    }
    </script>
  4. Save Widget

You have successfully removed m=1 from the website URL now go and have a look!

Conclusion:

You are done you have successfully removed m=1 from your website URL if it is viewed on mobile devices if you think this article is help make sure to share it with your friends and subscribe to the newsletters of this blog to get notifications of this kind of article whenever they are published.

2 Comments

Help us improve this article by leaving your feedback below.
  1. Chaudhry Rahman
    Chaudhry Rahman 13 Sept 2020, 18:52:00

    but now this is showing m=0 how to remove this m=0

    Reply Delete
  2. M.Muzammil
    M.Muzammil 17 Sept 2020, 07:08:00

    Currently this issue isn't solved please wait for the updates.

    Reply Delete
Add Comment
Previous Post Next Post