How can I display a custom maintenance message on Magento 2.2.4Multistore Maintenance Mode Magento 2Preserve...
Bash Script Function Return True-False
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
How much mayhem could I cause as a sentient fish?
Is boss over stepping boundary/micromanaging?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
Does theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?
Cat is tipping over bed-side lamps during the night
Can we harness gravitational potential energy?
Traveling through the asteriod belt?
Transpose a matrix and parenthesis
https://publish.twitter.com/oembed と https://api.twitter.com/1/statuses/oembed.json について
What is a good reason for every spaceship to carry a weapon on board?
What is the wife of a henpecked husband called?
Dilemma of explaining to interviewer that he is the reason for declining second interview
Use two 8s and two 3s to make the number 24
Can I write a book of my D&D game?
Publishing research using outdated methods
Cookies - Should the toggles be on?
How do you funnel food off a cutting board?
IGBT transistor with auxiliary emitter
Using only 1s, make 29 with the minimum number of digits
What is 6÷2×(1+2) =?
What is the difference between rolling more dice versus fewer dice?
Why was Lupin comfortable with saying Voldemort's name?
How can I display a custom maintenance message on Magento 2.2.4
Multistore Maintenance Mode Magento 2Preserve Maintenance Mode during Magento Core Deploymentmagento 2 - How to use composer for extensionMagento 2 - Single instance, multiple websites with single store view each - How to configure Apache?Best place for 3rd party librariesMagento 2 index management system error messageWeb server very slow for serving images of MagentoMagento 2 and git, best practice for custom module developmentSyntaxError: missing ) after argument listWhich module I can disable in Magento 2?How can I add a 3rd party dependency in a custom module?
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?
magento2 error apache2 maintenance
add a comment |
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?
magento2 error apache2 maintenance
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago
add a comment |
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?
magento2 error apache2 maintenance
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?
magento2 error apache2 maintenance
magento2 error apache2 maintenance
edited 13 mins ago
Glorfindel
2471412
2471412
asked 5 hours ago
OriolOriol
828
828
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago
add a comment |
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago
add a comment |
2 Answers
2
active
oldest
votes
For this You need to update below file
pub/errors/default/503.phtml
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
<skin>customerrorpage</skin>
http://prntscr.com/mr8kgy
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.
http://prntscr.com/mr8l75
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 link
Thanks
New contributor
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
add a comment |
you can go to pub directory and find below path:
pub/errors/default/503.phtml
and quick edit on the 503.phtml
file and edit this lines also css add here
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
|
show 1 more comment
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263825%2fhow-can-i-display-a-custom-maintenance-message-on-magento-2-2-4%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
For this You need to update below file
pub/errors/default/503.phtml
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
<skin>customerrorpage</skin>
http://prntscr.com/mr8kgy
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.
http://prntscr.com/mr8l75
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 link
Thanks
New contributor
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
add a comment |
For this You need to update below file
pub/errors/default/503.phtml
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
<skin>customerrorpage</skin>
http://prntscr.com/mr8kgy
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.
http://prntscr.com/mr8l75
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 link
Thanks
New contributor
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
add a comment |
For this You need to update below file
pub/errors/default/503.phtml
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
<skin>customerrorpage</skin>
http://prntscr.com/mr8kgy
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.
http://prntscr.com/mr8l75
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 link
Thanks
New contributor
For this You need to update below file
pub/errors/default/503.phtml
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
<skin>customerrorpage</skin>
http://prntscr.com/mr8kgy
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.
http://prntscr.com/mr8l75
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 link
Thanks
New contributor
edited 2 hours ago
New contributor
answered 4 hours ago
VDCVDC
1166
1166
New contributor
New contributor
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
add a comment |
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
check my updated answer
– VDC
2 hours ago
check my updated answer
– VDC
2 hours ago
wow thanks!! @VDC
– Oriol
6 mins ago
wow thanks!! @VDC
– Oriol
6 mins ago
add a comment |
you can go to pub directory and find below path:
pub/errors/default/503.phtml
and quick edit on the 503.phtml
file and edit this lines also css add here
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
|
show 1 more comment
you can go to pub directory and find below path:
pub/errors/default/503.phtml
and quick edit on the 503.phtml
file and edit this lines also css add here
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
|
show 1 more comment
you can go to pub directory and find below path:
pub/errors/default/503.phtml
and quick edit on the 503.phtml
file and edit this lines also css add here
you can go to pub directory and find below path:
pub/errors/default/503.phtml
and quick edit on the 503.phtml
file and edit this lines also css add here
edited 4 hours ago
answered 4 hours ago
Rakesh DongaRakesh Donga
1,321316
1,321316
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
|
show 1 more comment
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Thanks!!can i do a error page for every language?
– Oriol
3 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
Done! And i updated my question :D
– Oriol
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
my pleasure.. :)
– Rakesh Donga
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Sorry, now done!
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
Hellooooo! Can you tell me how can i do a multi language error page? For every store on magento @Rakesh Donga
– Oriol
2 hours ago
|
show 1 more comment
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263825%2fhow-can-i-display-a-custom-maintenance-message-on-magento-2-2-4%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Multistore Maintenance Mode Magento 2
– sv3n
2 hours ago