How to Remove ?m=1 From Website URL On Mobile
close
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 because it automatically adds up if your website is viewed on mobile devices it 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 look professional.

Today in this articles I will tell you how you can remove that m=1 from 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 new HTML/JavaScript Widget and paste the code provided below in 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 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 helpful make sure to share it with your friends and subscribe to the newsletters of this blog to get notifications of this kind of articles whenever they are published.
Disqus Codes

No comments

Comments System WIDGET PACK

Notifications

Disqus Logo