0

I have a question on how to display those error pages except for 404 error page. because it can be created using cms page. I wonder why on how to create error pages like 500 and etc. I hope someone can help me. Correct me if I'm wrong.

Thanks

1

First, create a 500.html page in your document root (usually a public_html/ or www/ directory).This should probably be a static HTML page rather than anything dynamic (i.e. PHP). Then Add the following rule to the start of your Magento .htaccess

## rewrite errors to 500 error document
RewriteRule ^report/.* 500.html [L,R=503]

This will then redirect any requests for an error report page using a 500 response code (Internal server error) and display the 500.html page in place of the standard Magento page.

  • Hi Kishan Thanks for your answer. I'll try this one. I'll feedback later thanks again – MazeStricks Apr 17 '17 at 6:17
1

Create new custom 500 page

enter image description here

pub/errors/custom

Create a new one or rename the local xml

pub/errors/local.xml

<?xml version="1.0"?>
<config>
    <skin>custom</skin>
</config>

Your custom 500 page

pub/errors/custom/503.phtml

<h1>Service Temporarily Unavailable Custom</h1>
<p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p>

We can add more style:

pub/errors/custom/css/styles.css

  • Thanks Khoa, Your method is interesting. I'll try this one also thanks – MazeStricks Apr 17 '17 at 6:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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