Used This Technique to redirect ?m=1 in mobile from URL In Blogger
Today we can tell you how to remove permanently directly ?m=1 from the URL in the blogger.
Before we started, There are certain things I want to tell you that if you are type URL in google search, then you see in mobile that the URL contain "?m=1," which does not seem like a URL that URL is an appropriate URL So that why we will tell you how to redirect from a mobile m=1 from URL in blogger.
Why should we remove ?m=1 in blogger?
Because It doesn't suit URLs, and it doesn't like SEO-friendly URLs when the user shares this website on the social media platform.
What is Seo-friendly URL in a blogger?
Every website has its uniform resource locator, which implies URLs facilitate describe an online page to go looking engines and potential guests. That’s why URLs ought to be correct, concise, clear, and well-structured.
Whenever you visit any website, does one get the precise info or content to open the location link? If affirmative, then it suggests that URLs area unit SEO friendly due to this area unit those URLs that area unit primarily designed to satisfy users and searchers' requirements. Considerably, URLs optimized for SEO tend to be short and keyword-research.
Besides, the SEO-friendly URLs area unit is accustomed to optimize the structure and word usage in URLs. The method of classification an internet site by computer program gets increased or improved.
When we share a URL in social media, you can see this URL containing ?m=1, as you can see in a given image.
Before Adding script for blogger in mobile view URL scenario
Follow 3 Steps & redirect your ?m=1 in mobile from URL
Step 1) Go to Blogger Dashboard & Go to Theme.
Step2) Now, Click on the down arrow button left to the Customize button & select Edit HTML.
Step3) Now Find </body> tag with the help of Ctrl + F and copy the script is given below & paste the script before ending the </body> tag and save the theme.
<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>
Now you can see you have successfully redirect ?m=1 in mobile form URL in 2021.
Conclusion
Thanks for reading our post; if you like this post, share with these friends, and if you find any queries, then comment with us. We will solve your questions.
Posting Komentar