Solved: 404 Page Not Found for URLs End With ?m=1 | WordPress

Updated:

by

Solved: 404 Page Not Found for URLs End With ?m=1 | WordPress featured

Have you migrated you Blogger blog to WordPress and getting the “404 Page Not Found” error for URLs end with “?m=1” on your WordPress blog and Google Search Console? You’re in the right place.

In this tutorial, I will guide you step-by-step on how to fix the 404 Page Not Found error by redirecting your old “?m=1” Blogger URLs to normal (original) URLs.

For some blog posts Blogger creates separate URL for mobile devices, which ends with “?m=1”, like http//www.johnsmith.com/how-to-choose-glasses.html?m=1. Blog posts with such URLs are optimized to make them perform well on mobile devices.

Contrary to Blogger, WordPress does not create URLs end with “?m=1” for blog posts, and that’s why when such URLs are opened from Google search results WordPress shows you the “404 Page Not Found” error. WordPress creates separate URLs for mobile devices only when you enable AMP(Accelerated Mobile Pages).

WordPress is a very flexible blogging platform, there is a solution for every problem. To avoid “404 Page Not Found” error we add a code of few lines into “.htaccess” file, that redirects URLs end with “?m=1” to normal URLs.

The “.htaccess” is a very important file that provides a way to make configuration changes to your website on a per-directory basis.

Fix 404 Page Not Found for URLs End With ?m=1

Follow the steps to fix the error, 404 page Not Found for URLs end with ?m=1 on WordPress.

  • Login to your cPanel account. The Username, Password and Link of your cPanel account are provided to you by your web hosting provider.
Login to your cPanel account.
  • Click on the “File Manager” located under the FILES section.
Click on the "File Manager" located under the FILES section.
  • Click on the “public_html” directory.
Click on the "public_html" directory.
  • Click “Settings” located at your top-right corner.
  • A popup will appear, tick “Show Hidden Files(dotfiles)“.
  • Click on the SAVE button.
Click "Settings" located at your top-right corner. A popup will appear, tick "Show Hidden Files(dotfiles)". Click on the SAVE button.
  • Right-click on “.htaccess” file.
  • Click on the “Edit“.
Right-click on ".htaccess" file. Click on the "Edit".
  • It will remind you to download the “.htaccess” file before editing. In case you make a mistake you will upload your “.htaccess” file again.
  • Click on the “Edit” button.
Click on the "Edit" button.
  • Now Paste below lines in the top of your “.htaccess” file and “Save“.
#To redirect URLS end with ?m=1
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule ^(.*)$ /$1? [R=301,L]
</IfModule>
#Ends Redirect URL
Paste below lines in the top of your ".htaccess" file and "Save".
  • Open your URLs end with “?m=1”, WordPress and Google Search Console will not show you the “404 Page Not Found” error because this code will redirect those URLs to their normal URLs.

If you like this post then don’t forget to share with other people. Share your feedback in the comments section below.

Affordable WordPress themes

Also Read

Related Topics: , , , ,
Buy Domain and Hosting on Namecheap Now
Find a Freelancer for website design, logo design, graphic designing, WordPress, Blogger, NFT, AI, SEO, Digital Marketing, Amazon Seller Services, Voice Over, Script Writing, Data Entry, Translations, and many more...
Download Website Themes
Mangools SEO Tools
Order Motivational T-Shirts With Quotes from Our Store Fire Ram 23.4.

Subscribe to Our Newsletter!

2 responses

  1. Avatar

    hey thanks for sharing this method. i was getting 404 not found error on ?m=1 parameters’. but now this is fix because of your method. thank you again.

    1. Meer Basit

      You’re most welcome Shahbaj.It is good to see that your problem is fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *