1. Install the “Htaccess File Editor” Plugin.
![](https://www.infallibletips.com/wp-content/uploads/2022/06/WP-Htaccess-File-Editor.jpg)
2. Select “Edit Htaccess“.
![](https://www.infallibletips.com/wp-content/uploads/2022/06/Edit-Htaccess.jpg)
3. Take a back up of the Htaccess file. This is very important step if something goes wrong.
4. Add the following code just below the RewriteBase / line:
RewriteCond %{QUERY_STRING} ^m=1$
RewriteRule (.*) $1? [R=permanent]
![](https://www.infallibletips.com/wp-content/uploads/2022/06/Modify-Htaccess-File-WordPress.jpg)