• Resolved Neto

    (@netominas)


    I’ve altered the structure of permanent linkns in my wordpress, now I’m having problems in AMP.

    I changed the initial structure of category and dates, now the old posts are showing 404 errors in the AMP

    Example: OLD /14/07/noticias/agentes-penitenciarios-presos-por-crime-ambiental/amp/

    NEW – /noticias/14/07/agentes-penitenciarios-presos-por-crime-ambiental-81/amp/

    OLD – /%day%/%monthnum%/%category%/%postname%/
    NEW – /%category%/%day%/%monthnum%/%postname%-%post_id%/

    How can I create this redirect in Htacces? I did it this way but it is not working

    
    RedirectMatch 301 ^/([0-9]{2})/([0-9]{2})/([^/]+)/([^/]+)/amp/$ https://www.reportersocial.com.br/$4
    
    • This topic was modified 5 years, 9 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect 301 AMP Errors’ is closed to new replies.