• Support,

    We noticed when trying to access protected files the redirect was a 301. This meant that after an admin user logged in and tried accessing the same file they were still not able to access the file.

    Therefore we modified the plugin file to issue a 302 temporary redirect to fix the bug:

    download.php

    /**

    Check file found or not
    */
    function file_not_found() {
    $page_404 = get_page_404();
    if ( isset( $page_404 ) && ! empty( $page_404 ) ) {
    header( "Location: " . $page_404, true, 302 );
    } else {
    header( "Location: " . get_site_url() . "/pda_404", true, 302 );
    }
    }

    Can you check this and update the code / core plugin files with our modification to prevent the permanent redirect?

    Thanks,

Viewing 1 replies (of 1 total)
  • Plugin Support Muhammad

    (@muhammadwpfolio)

    Hi @camna,

    Thank you for sharing your findings and the code modification.

    We appreciate the detailed explanation regarding the 301 redirect behavior and how changing it to a 302 redirect resolved the issue in your environment.

    I’ve forwarded this information to our development team for review. They will investigate whether the current redirect behavior could cause caching or access issues in certain scenarios and whether a change should be considered in a future update.

    Thank you for taking the time to report this and provide the code snippet.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.