• Resolved room34

    (@room34)


    First off, I’m just guessing that this has to do with the server move.

    The download links on my client’s podcast are all returning 404 errors since we moved their site to a new host. The URLs are in this format:

    https://DOMAIN/podcast-download/POST_ID/FILENAME.mp3?ref=download

    I’ve visited the Permalinks page, cleared transients out of the database, deactivated and reactivated the plugin, and cleared WP Engine caches (that’s the new host), and still the links are returning 404 errors. Is there anything else I can do to make the rewrite URLs work properly?

    • This topic was modified 1 month, 1 week ago by room34.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter room34

    (@room34)

    RESOLVED: I poked around the support documentation and found this:

    https://support.castos.com/article/298-bypass-rules-for-nginx-hosted-websites

    Since WP Engine uses nginx, this described the situation perfectly. I’ll note for anyone else using WP Engine, you do not need to contact their support for this. You can add the rewrites yourself under the Redirect rules section of their admin interface.

    I used the code in the example email you would write to support, and they worked:

    # Seriously Simple Podcasting
    rewrite podcast-download/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1 break;
    rewrite podcast-player/([^/]+)/([^/]*)/? /index.php?podcast_episode=$1&podcast_ref=player break;

    You don’t need to use the rewrite or break; code. Just put the first portion into the source field and the second in the destination, like this:

    Source: podcast-download/([^/]+)/([^/]*)/?

    Destination: /index.php?podcast_episode=$1

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @room34,

    Thank you for the investigation and sharing your knowledge, much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.