I was recently trying to upgrade my Magento 2.2.7 to Magento 2.3.0 and the following message came up in component dependencies

Found non-writable path(s):

Upon closer inspection it would seem that the .htaccess file is missing in this folder (although there is still one in pub/static).

Is there any way to get this file back?


1 Answer 1


You can copy .htaccess file from github repository.

Copy it from https://github.com/magento/magento2/blob/2.3-develop/pub/.htaccess

If you have already upgraded to version 2.3, you will need .htaccess file of new version i.e 2.3 otherwise download from 2.2.


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.