21293 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1063 Views |
-
Site Maintenance?

4 November 2010 at 4:15am
Hi,
When you upgrade a website (e.g. the version of silverstripe) do you do something like add an index.php in the root or change the htaccess temporarily to link to a static page indicating you are carrying out maintenance? Is there a simple way to do this with silverstripe?
-
Re: Site Maintenance?

4 November 2010 at 5:36am Last edited: 4 November 2010 5:38am
I use this code in .htaccess file :
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_HOST} !^91\.192\.248\.32 // your ip here
RewriteRule $ /maintenance.html [R=302,L]I created a maintenance.html in the root folder, and put in my ip in the code above. Now all visitors are redirected to the maintenance page, and only me can access to the website.
-
Re: Site Maintenance?

24 February 2011 at 8:58am
I've used a similar tactic and it works well, but is a little clunkier to set up than I'd like.
There's also the Holding Page module: http://www.silverstripe.org/holding-page-module/
Does anyone know if this module is suitable to be used while the SilverStripe core is being upgraded?
-
Re: Site Maintenance?

24 February 2011 at 8:24pm
You shouldn't really upgrade the core on the live site. I also think relying on a module may not work as if core breaks then it'll bring all SilverStripe specific code down with it. You are best using your own maintanence.html file and .htaccess rule (as shown above) than a module.
| 1063 Views | ||
|
Page:
1
|
Go to Top |




