I have to update several modules of Magento, also deactivate others and during that the frontend will not be available.

How can I make a simple personalized message? Would you touch on some Magento or Apache directory?

And how can I make a separate message page for every language?


2 Answers 2


For this You need to update below file


and design accordingly

but best practice to override this into custom error page for this follow below steps.

Go into the pub/errors

Create a copy of the local.xml.sample and rename it as local.xml Edit the with your custom name. Ex – customerrorpage



Next create a copy of the “default” folder and rename it with your skin name. Ex – customerrorpage

Locate the 503.phtml inside the newly created folder and add your custom code. Add the styles inside css/styles.css and relevant images under images folder.


For particular language (store view wise) you need to do using .htaccess

In you .htaccess add an rewrite rule that appends a skin parameter to your URL. Eg.

RewriteCond %{HTTP_HOST} ^french.example.com$
RewriteCond %{DOCUMENT_ROOT}/var/.maintenance.flag -f
RewriteCond %{QUERY_STRING} !(^|&)skin=french(&|$) [NC]
RewriteRule ^ %{REQUEST_URI}?skin=french[L]

Copy pub/errors/default to pub/errors/french

Change/translate template files to your needs

Reference Multistore Maintenance Mode Magento 2


  • Thanks!!can i do a error page for every language?
    – Oriol
    Commented Feb 28, 2019 at 11:09
  • check my updated answer
    – VDC
    Commented Feb 28, 2019 at 11:49
  • Maybe it appears in DevDocs soon ... github.com/magento/devdocs/issues/3393 :) +1 for (my) answer :P
    – sv3n
    Commented Feb 28, 2019 at 18:35

you can go to pub directory and find below path:


and quick edit on the 503.phtml file and edit this lines also css add here

enter image description here

  • Thanks!!can i do a error page for every language?
    – Oriol
    Commented Feb 28, 2019 at 11:09
  • Done! And i updated my question :D
    – Oriol
    Commented Feb 28, 2019 at 11:15
  • my pleasure.. :) Commented Feb 28, 2019 at 11:16
  • Sorry, now done!
    – Oriol
    Commented Feb 28, 2019 at 11:19
  • Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
    – Oriol
    Commented Feb 28, 2019 at 11:36

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.