Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Myriam 1 post 71 karma points
    Jun 04, 2024 @ 09:09
    Myriam
    0

    404 error on article pages only on live environment

    Since I put the site on the production environment and entered the "Cultures and Hostname" on the home page, the articles now redirect to a 404 page.

    On the development environment, “Culture and Hostname” were not set and the url of the articles was: https://example.com/news/article-name/ and this worked very well.

    Since the migration to the production environment, the article url has changed to include '/posts/' in the slug: https://example.com/news/posts/article-name/

    However, on the article grid of the news page, the links to the articles have not been modified and are still https://example.com/news/article-name/, which redirects to a 404 page.

    Do you know what could be causing the problem? Do you have a solution?

  • Yakov Lebski 591 posts 2346 karma points
    Jun 04, 2024 @ 12:34
    Yakov Lebski
    0

    do you have cdn or waf, maybe it doing SSL termination?

    keep in mind that ant redirects are cached by browser and best way to check it in single incognito browser

Please Sign in or register to post replies

Write your reply to:

Draft