I am working with Magento 2.3.3 my instance is on the AWS server. On Magento2 how to access CSV file exists in var folder with website URL.

i.e. I have one file resides on var/export/test.csv now I want to access this test.csv file from my website URL

  • www.abc.com/var/export/test.csv

but it is always showing a 404 error: Page not found error.

How can I solve this issue?

Thanks in advance!!

  • 1
    you can not access var folder. Jan 23, 2020 at 5:10
  • 1
    Move test.csv to pub/media folder and access it. Jan 23, 2020 at 5:13

1 Answer 1


you are not authorize to access var folder instead move the file in websiteUrl/pub/media to access it using website url.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.