I normally have my files download as a file. However, occasionally I select the Redirect to File option for the file to open in a separate window. For some reason now its not working and just comes up with a 404 error. Please can you advise me on what to do?
Thanks
The page I need help with: [log in to see the link]
I am not sure what you mean, as I normally just add the download using the download monitor widget, so its uploaded on there and I just put in the short code. I then go into the download and select re-direct to file. This normally will then just open the file in a webpage rather than download. I have 404 redirect on if pages arent found.
I mean a website page where I can click on the download link to see the behaviour. Also, could you please go to dashboard > Settings > Permalinks and click the “Save changes” button without modifying anything and see if the problem with the 404 is gone?
Is the website server Apache or Nginx ( a screenshot of dashboard > Downloads > Settings > Advanced > Miscellaneous page would help )? Also, if you make a test Download with a file from the uploads/2023 directory and not the dlm_uploads( this directory, if on Apache, should be protected by an .htaccess file that doesn't let visitors browse directly to it, so only download would be possible ) does it work?
Here is the screen shot. I am not sure what you mean by uploading a file from the uploads 2023 not dln file. I just normally use the download monitor quick upload option. Regards Angie
If you you go to Media Library, upload a file ( an image for example ) and then use that file for a Download ( so adding a file to a Download by clicking the Media Library button as in the attached screenshot ), does the redirect work or does is still go to a 404 page?
Also, there were no screen shots added in your previous reply.
I have set up a new test page which not only has the screen shot on it, but also a document that uploaded onto media file and then put it into download monitor and used the redirect and this does work. It appears to just not work if uploaded directly into DLM
Yes, files located in the dlm_uploads directory are protected, so direct access is not allowed to them, as mentioned below the Redirect to file setting.