• Resolved Pierre236

    (@pierreto)


    Hi,

    I stop using AMP on 1 of my website, then I delete your plugin and add redirection like that :

    /fr/(.*)/amp (regex)

    redirect to :

    mywebsite.com/fr/$1

    Because I have multilingual website.

    But the redirection don’t work well, the amp link open to the article non amp but /amp/ it still at the end of url.

    Like mywebsite/article/amp/

    Ho to remove the /amp/ ?

    What I do wrong?

    Thanks

    • This topic was modified 2 years, 7 months ago by Pierre236.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share the URL of your website? So that we will inspect the issue and get back to you accordingly to resolve your issue.

    Thread Starter Pierre236

    (@pierreto)

    Hi,

    The solution I use was wrong, I finaly find that I don’t have to do redirection, just add that on .htaccess:

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

    Why you don’t know that?

    Now it work well!

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We asked for the URL for testing purposes. So that we will test it and thought to get back to you after inspecting the issue. Glad to know its as working. If you have any other issues or queries please let us know, So that we will help you accordingly to resolve them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stop using AMP and redirection’ is closed to new replies.