If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Redirect when the website is down for maintenance

Redirect when the website is down for maintenance

Started by jhowe on 14 Aug 2012, 1:37 AM · Views: 2,193

Results 1 to 3 of 3
14 Aug 2012, 1:37 AM
#1
jhowe avatar

jhowe

New Zenner

Join Date:
Jul 2012
Posts:
16
Plugin Contributions:
0

Redirect when the website is down for maintenance

Thanks for taking the time to read my post.

What I would like to do is have my page redirect to another internal webpage when the site is down for maintenance (or when a 404 error occurs) ~ either that or I would like to completely change the styles.css for the site is down for maintenance page (such as eliminating the background image, changing the background color, etc.). How can I accomplish this? Thank you for your help in advance.

14 Aug 2012, 5:41 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Redirect when the website is down for maintenance

You can change the CSS for your down_for_maintenance page by adding a new file at:
/includes/templates/NAME_OF_YOUR_TEMPLATE_HERE/css/down_for_maintenance.css
Put your CSS changes for just that page into that specific file, and it will take effect only when index.php?main_page=down_for_maintenance is displayed.

You can also turn off the headers/footers/sidebars on that page by flipping the corresponding switches in Admin->Configuration->Website Maintenance

As for 404 errors, you can ask your hosting company for help on how best to restyle your own custom 404 pages on their servers.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Aug 2012, 5:30 AM
#3
jhowe avatar

jhowe

New Zenner

Join Date:
Jul 2012
Posts:
16
Plugin Contributions:
0

Re: Redirect when the website is down for maintenance

Sorry for the delayed response, but I just wanted to say that the CSS copy worked perfectly for me. Thanks DrByte!