301 Redirect
-
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)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.