In Magento 1 when there is a 503 error,[.maintenance.flag
] file gets created in root Magento directory and deleting it brings the website back to its normal stage.
In Magento 2 when there is a 503 error, [.maintenance.flag
] is neither present in root nor in var. Where it's present?
Best Answer
Magento 2 maintenance mode file has the name
.maintenance.flag
(with the leading dot) and is located in thevar
folder.But HTTP
503
code response can have different causes. For example, the cause could be a webserver misconfiguration.