• Resolved stmich

    (@stmich)


    I had once used amp on a website a long time back and then removed it after 2 months or so. I deleted the plugin. But didnt redirect the urls. Now after seeing amp urls in analytics, I am trying to redirect

    I used this code in .htaccess –

    // Redirect AMP to non-AMP
    RewriteEngine On
    RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
    RewriteRule ^ %1/ [R=301,L]

    But nothing happens – it remains on the same page. ie it is not redirecting to the non-amp version. I also tried redirecting with the redirection plugin with the same effect. That is url remains the same : sitename.com/?amp=1/ redirects to sitename.com/?amp=1/

    When i check the amp url on a website crawler it says – the canonical tag is pointing to the non-amp version.

    Is there anything else i should do? I mean, if canonical tag is alright, should it be a problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @stmich

    We can not guide you regarding your server redirection configuration, we will recommend contacting your hosting provider or expert who can guide you better with it.

    You can use the mini plugins such as Redirection to create a redirection or use this mini plugin which can redirect users from AMP to non-AMP pages, you can also ask your hosting provider to add a redirect rule to your server configuration.

    It may take a few days (2-3 weeks) for Google Search Console to re-crawl your website and remove the AMP version of pages.

    We hope this helps!

    Thread Starter stmich

    (@stmich)

    ok

    I have a doubt; if the canonical is set, should it be an seo problem?

    Plugin Support Milind More

    (@milindmore22)

    Hello @stmich

    Can you please explain what you mean by “if the canonical is set, should it be an seo problem?”

    Plugin Support Milind More

    (@milindmore22)

    @stmich As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘AMP redirection error’ is closed to new replies.