Copied to clipboard

Flag this post as spam?

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


  • RyanW 33 posts 148 karma points
    Jan 28, 2020 @ 13:32
    RyanW
    0

    Content Appears when using Preview, but on live site I get a 302 redirect

    I added what I thought was a fairly simple button to some content we have on our site.

    eg, just a href link to "site.co.uk/site-content"

    I previewed the changes, works perfectly, navigates perfectly, etc.

    Once published and live, the button appears, but I get a 302 redirect instead. Same if I try to navigate directly to the links. Said links appear on live sitemaps too so the content is definitely live, just redirecting.

    As far as i'm aware, we don't have rewrite rules. We have no umbracoRedirects either. Any ideas or pointers to what might cause this inconsistency?

  • Ryan Helmn 26 posts 188 karma points
    Feb 10, 2020 @ 14:57
    Ryan Helmn
    100

    Try pasting the URL you are trying to hit into here: http://www.redirect-checker.org/

    Hopefully it should outline what exactly your redirect is doing. A couple of ideas off the top of my head:

    1. Are the links http and you have a https rule setup, if so is it appending the url to your redirect?
    2. Similar to the above but www.
    3. Could this be browser cache? Can you try it on your mobile?
  • RyanW 33 posts 148 karma points
    Feb 18, 2020 @ 16:22
    RyanW
    0

    I had tried that but didn't help much.

    Turns out, the client was disabling certain pages until they were ready to publish but then forgetting to undisable them. It was heavily obscure code that we inherited from them. So they essentially wrote their own hardcoded rewrite, grrr.

    Weird how preview worked though, I guess it just shows as is without redirects?

    Thanks for the tips though, hope it might help someone.

Please Sign in or register to post replies

Write your reply to:

Draft