Understanding the Blogspot /?m=1 URL: A Feature, Not a Bug
Java Script Code to fix /?m=1 mentioned in the end of the page
You can copy it from there
Many Blogspot users encounter URLs with the "/?m=1" parameter, leading them to seek ways to "fix" it. However, it's crucial to understand that this is not an issue requiring a solution but a built-in feature that actually offers several benefits:
1.Enhanced Mobile Experience: By automatically redirecting users to the mobile-optimized version (indicated by "/?m=1"), Blogspot ensures a seamless browsing experience on smaller screens. This translates to:
- Improved readability: Text and elements are adjusted for better mobile viewing.
- Easier navigation: Menus and buttons are optimized for touch interaction.
- Faster loading times: Mobile-specific layouts often load faster on cellular networks.
But there is a problem with google search engine of having 2 urls for a one web page. Therefore this feature will become a problem when it comes to search engine optimization.
If you have a theme which has a mobile view, you don’t need to have this function. So, we can eliminate that and improve SEO with google and other search engines.
2. SEO Advantages: Contrary to misconceptions, the "/?m=1" parameter doesn't negatively impact your website's Search Engine Optimization (SEO). Google prioritizes mobile-friendliness in its rankings, and Blogspot automatically sets the canonical URL (the official version for search engines) as the one without "/?m=1." This ensures both optimal user experience and search engine visibility.
3. Reduced Development Workload: Maintaining two separate versions of your website (desktop and mobile) can be time-consuming and resource-intensive. Blogspot's automatic mobile optimization through "/?m=1" reduces this workload, allowing you to focus on creating compelling content.
While some might mistakenly believe removing the "/?m=1" parameter offers benefits, it's important to understand the potential downsides:
Compromised Mobile Experience: Forcing the desktop version on mobile devices can lead to:
- Cluttered and difficult-to-navigate interface
- Inability to use touch-specific features
- Frustration for mobile users, potentially leading to higher bounce rates
In conclusion, the "/?m=1" URL change on Blogspot is a valuable feature that enhances user experience on mobile devices while maintaining optimal SEO practices. If you see this parameter on your desktop browser, a simple cache clear or setting adjustment might be necessary.
Steps
1. Goto blogspot dashboard and Themes.
2. Download current theme to take a backup and goto edit.
3. Copy the first body command and search that tag on your current theme using 'ctrl + f' keys to find closing body tag.
4. Copy the 2nd command and paste it above the closing body tag like I'm doing in the video.
5. Save your theme and test your website. Your mobile visit URL will become normal after website load.
</body>
<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>