SK01 Posted August 16, 2010 Share Posted August 16, 2010 Is it possible to redirect a visitor to another page during system maintance?I know there is a function in Preferences, and that you can disable and enable the shop there.But I would like to redirect my visitors to another page during system maintance.Can I change some code somewhere? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 16, 2010 Share Posted August 16, 2010 Change this code in init.php: header('HTTP/1.1 503 temporarily overloaded'); To redirect the location you want. Link to comment Share on other sites More sharing options...
SK01 Posted August 16, 2010 Author Share Posted August 16, 2010 Hi MrBaseBall34 and thank you very much for your help!Should it look something like this then; header('http://www.the-page-i-want-to-display.com');? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 16, 2010 Share Posted August 16, 2010 No, look at the way it's done in these examples:http://php.about.com/od/learnphp/ht/phpredirection.htm Link to comment Share on other sites More sharing options...
SK01 Posted August 17, 2010 Author Share Posted August 17, 2010 Okay! I got it now.. So i need to delete all the code in the "init" page, and replace it by:<?php header( 'Location: http://www.yoursite.com/new_page.html' ) ;?>Or should I only replace 'HTTP/1.1 503 temporarily overloaded' with 'Location: http://www.yoursite.com/new_page.html' .Thank you very much for your help!: ) Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 17, 2010 Share Posted August 17, 2010 just replace the code I mentioned. Link to comment Share on other sites More sharing options...
SK01 Posted August 17, 2010 Author Share Posted August 17, 2010 Got it thank you very much. It worked perfect! Link to comment Share on other sites More sharing options...
Autourdupc Posted October 15, 2014 Share Posted October 15, 2014 (edited) Nothing to says... Just an error ! Edited October 15, 2014 by Autourdupc (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now