Redirect from AMP URLs to Real URLs

I want to convert old links amp links to basic topics in wordpress
Via the .htaccess file
I tried this code but it did not work

Redirect old AMP URLs

RewriteRule (.*)/AMP$ $1 [NC,R=301,L]

Redirect old AMP URLs

RewriteRule (.*)/amp/$ $1 [NC,R=301,L]

I want Redirect from (http://example.com/news/55/amp/) to (http://example.com/news/55/amp/)

Read more here: Redirect from AMP URLs to Real URLs

Leave a Reply

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