AMP URL Rewriter Plugin: Rewrite amp urls [from /amp and /?amp] to non-amp

- AMP Rewriter Plugin
- AMP Endpoint Removal plugin
- How to install a WordPress plugin
Hello guys,
welcome to my blog, as you may already know me, I am Coker Hope Afe, proud owner of this blog (Naijatechnews.com) and today i will give you a permanet solution in fixing amp errors, perhaps as it has been reported through your Google search console (GSC). You don’t need to be scared or worried if you have no knowlege of coding or php because wordpress has made it easy for everyone to handle and resolve problems without prior knowledge of progamming. Wonderful right? Yes it is definitely.
So, I have developed a plugin to handle this issue and erase all urls (links) with /amp and /?amp to non amp which is the clean default url.
For instance: https://www.naijatechnews.com/dream-league-soccer-2021-mod-apk-dls-21-unlimited-coins/amp to https://www.naijatechnews.com/dream-league-soccer-2021-mod-apk-dls-21-unlimited-coins/
and
https://www.naijatechnews.com/dream-league-soccer-2021-mod-apk-dls-21-unlimited-coins/?amp to https://www.naijatechnews.com/dream-league-soccer-2021-mod-apk-dls-21-unlimited-coins
Isn’t that sweet ? yea! It is and you love it. It automatically redirect URLs with the /amp/ and /?amp query to normal URL. This is only useful when removing the AMP plugin. The plugin will do nothing, if the AMP plugin is active, I mean the plugin won’t work if you have the amp plugin activated. So be sure that you have deactivated the amp plugin first if haven’t done that already.
You may just flush your permalinks, if you experience any problems.
Check also: How to best resize a photo, all methods you need is here & Wordfence Security Premium v7.4.12 – Total Protection
How To Install The Plugin
Since this is a quiet lengthy article, we have added a table of contents for easier navigation.
Instructions on how to install the AMP URL Rewriter WordPress plugin
There are two ways to do it:
- Installing via WordPress Admin
- Installing via FTP/Cpanel
Installing via WordPress admin
- First, Download the Plugin from Here
- Login to wordpreess admin dashboard.
- Navigate to Plugins > Add new.
- Click on the Select files from device.
- Tap on Upload
- Then Activate after successfully uploaded
That’s done.
See also: How to Protect WordPress Themes Wp-content from Hack
Installing via FTP/CPANEL
- First, Download the Plugin from Here
- Login to ftp or your cpanel or hosting account > cpanel/ftp filemanager
- cpanel > Public_html > Wp-content > plugins
- Upload the AMP URL Rewriter WordPress plugin you have downloaded
- After successfully uploaded, then Extract the file because it’s in zip file
- Then activate the plugin via the WordPress admin (e.g.
wp plugin activate
).
Done.
Hope you enjoy the tutorial? share