Maintenance Mode

Okay so I tested the page in IE and it seems to work fine, but when I view it in Chrome I get told the page had too many redirects and nothing loads, I have not tried it in Firefox.
So if you try going to http://mckennastudios.com it should bring you to a maintenance.html page.
Here is what I added to my .htaccess file:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteRule $ /maintenance.html [R=302,L]
If there's a better way that's just as easy to enable/disable maintenance mode for a website please let me know.

Sorry to bump in. But, a 301 redirect would've worked for you - but is very bad practice. You've clearly mentioned you're redirecting users to this page only for 'maintenance'. 301 is used for a 'permanent redirect' - meaning your search engine indexes will go for a toss. Read this: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=93633
307 (temporary redirect) is the right way to do it as it tells the client to remember this redirect is only temporary and prompts the client to visit the requested URL the next time - meaning the 2nd time your user enters the 'root' or 'request URL' of your domain name, the client will not be redirected to /maintenance.html, but will look for /index.html or the originally requested URL.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteRule ^(.*)$ http://mckennastudios.com/maintenance.html [R=307,L]
Your original code should work. Where in .htaccess did you put this code? Do you have other lines in .htaccess file? Maybe a possible conflict of rules?
-ST

Similar Messages

  • Looking for a Powershell Script which can put the scom servers in maintenance mode

    Looking for a Powershell Script which can put the scom servers in maintenance mode so that SCOM should not send an alert during planned task.
    Rahul

    1. Provide list of servers line-by-line in C:\ServerList.txt, make sure you provide limited no. of servers, do not exceed 20 - 25 per batch
    2. Save the script with suitable name (test.ps1)
    3. Open PowerShell cmd prompt
    4. Script accepts 3 params - TimeInMinutes, Reason and Comment
    **** Please note, this script will work for SCOM 2012 R2
    param([int32]$TimeMin, [string]$Reason, [string]$Comment)
    try
    $api = new-object -comObject 'MOM.ScriptAPI'
    Import-Module operationsmanager
    New-SCOMManagementGroupConnection
    $Servers = Get-Content "C:\ServerList.txt"
    $Time = (Get-Date).Addminutes($TimeMin)
    Foreach ($Server in $Servers)
    #Get Computer instance
    $ComputerClass = Get-SCOMClass -Name Microsoft.Windows.Computer
    $ComputerClassInstance = Get-SCOMClassInstance  -Class $ComputerClass | Where {$_.DisplayName -eq $Server}
    If ($ComputerClassInstance -ne $Null)
    $HealthServiceWatcherClass = Get-SCOMClass -name:Microsoft.SystemCenter.HealthServiceWatcher
    #Get Health Service Watcher Class instance of the server
    $HSWClass = Get-SCOMClass -Name Microsoft.SystemCenter.HealthServiceWatcher
    $HSWClassIns = Get-SCOMClassInstance  -Class $HSWClass | Where {$_.DisplayName -eq $Server}
    #Starting the maintenance mode
    Start-SCOMMaintenanceMode -Instance $HSWClassIns -EndTime $Time -Reason $Reason -Comment $Comment
    Start-SCOMMaintenanceMode -Instance $ComputerClassInstance -EndTime $Time  -Reason $Reason -Comment $Comment
    Write-Host "Health Service Watcher and Agent server "$Server " kept in maintenance mode"  -foregroundcolor "green"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 200, 0, "$Server kept in maintenance mode for $TimeMin minutes")
    Else
    Write-Host $Server" not found " -foregroundcolor "red"
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, "$Server could not be found in domain")
    Catch [system.exception]
    $api.LogScriptEvent('MaintenanceModeScript.ps1', 201, 1, $_.Exception.Message)
    Faizan

  • 5508-HA standby in Maintenance mode

    My standby controller is in maintenance mode. Other post say to simply reboot the standby but I'm worried about doing this during business hours. Say I did reboot it during business hours, would it affect the active controller? All redundancy links are connected.
    (Cisco Controller) >show redundancy sum
     Redundancy Mode = SSO ENABLED
         Local State = MAINTENANCE
          Peer State = UNKNOWN - Communication Down
                Unit = Secondary - HA SKU
             Unit ID = 00:06:F6:DC:17:00
    Redundancy State = Non Redundant
        Mobility MAC = 68:EF:BD:8E:61:E0
    Maintenance Mode = Enabled
    Maintenance cause= Negotiation Timeout

    No it won't affect the active controller:
    While booting, the WLCs will negotiate the HA role as per the configuration done. Once the role is determined, the configuration is synced from the Active WLC to the Standby WLC via the Redundant Port. Initially WLC is configured, as Secondary will report XML mismatch and will download the configuration from Active and reboot again. During the next reboot after role determination, it will validate the configuration again, report no XML mismatch, and process further in order to establish itself as the Standby WLC
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/technotes/7-5/High_Availability_DG.pdf
    https://supportforums.cisco.com/discussion/11758901/ask-expert-high-availability-wireless-lan-controller-wlc

  • Warning: The system has not been taken off maintenance mode completely

    After I enabled Maintenance mode using adadmin, I ran Compile Flexfields. Then I disabled Maintenance mode. But, on the 11i login page, I keep getting a warning message:
    Warning
    The system has not been taken off maintenance mode completely. Please contact your System Administrator.
    I am sure I disabled the Maintenance mode in adadmin. Why I still get the warning? How to fix it? Thanks a lot.

    Thanks a lot. That is the fix.
    One more question. After I ran "Compile Flexfields", I got
    Number of successful descriptive flex compilations : 7520
    Number of failed descriptive flex compilations : 1
    How can I find the failed description flex? The log does not give info on this. And, how to fix it?
    Thanks a lot for your help.

  • Cairo-dock starts in "maintenance mode"

    Hi,
    I've recently upgraded the cairo-dock, but since then it starts along with the <maintenance mode window>... When I try to close it, it reappears until the wifi connection settles down. I suspect that weather-dock is making troubles when it does not have connection to the internet.
    I've looked through the cairo-dock options, and it has an option to force maintenance mode, but it does not have one to force disabling it unfortunately.
    Anyone has any idea how to get rid of this?

    probably an issue with your configuration. had this once, deleted my .config/cairo-doc ( at least i think thats where it was) folder and it worked again - with default settings.

  • OM2012 – Putting a Monitor in maintenance mode

    Hi there,
    I need to write a powershell script to put a Monitor in Maintenance mode. This is easily doable manually on the console whenever an alert comes up by putting the alert in Maintenance Mode.
    So far I managed to make my script to put the class of the Monitor into maintenance, as per bellow
    i.e. if the monitor is “Total CPU Utilization Percentage”, it would put  Microsoft Windows Server 2012 R2 Datacenter in maintenance mode for the computer $ComputerName.
    $ComputerName = Read-Host “Enter computer name”
    $MonitorName = “Total CPU Utilization Percentage”
    $Monitors=Get-SCOMMonitor -ComputerName $strComputerName | where {$_.DisplayName -eq $MonitorName}
    $Time = ((Get-Date).AddMinutes(6))
    foreach ($Monitor in $Monitors) {
    $Instance = Get-SCOMclass -name $Monitor.target.identifier.path | Get-SCOMClassInstance #| where {$_.Path -eq $ComputerName}
    Start-SCOMMaintenanceMode -Instance $Instance -EndTime $Time -Comment: “Server maintenance”
    I can’t figure our how to simply put “Total CPU Utilization Percentage” (or any other Monitor) in maintenance mode
    Thanks for your help !

    Yes, use the "Start Maintenance Mode" Activtiy of the Integration Pack for OpsMgr.
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • Redirect users to page when we take system in maintenance mode.

    I would like to redirect users to page when we take system in maintenance mode. We are on 12.1.3 application. please provide me document which have these details

    Please see old threads which discuss the same topic.
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Redirect+AND+Maintenance&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Maintenance+AND+Message&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    http://forums.oracle.com/forums/search.jspa?threadID=&q=Outage+AND+Maintenance&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please search the forum before posting similar questions.
    Thanks,
    Hussein

  • SCCM 2012 Software Update Management for Windows Servers and how to automatic set SCOM maintenance mode?

    Hi,
    We planning to go one level higher to automat and have more dynamic Software Update Management for Windows Servers. We have SCCM 2012 R2, SCOM 2012 R2 and SCO 2012 R2.
    Our plan is to pur server in an AD-Group to get Update Schedule, from the servers will be importet to an Collection for Automatic Update and reboot. If I understand Everything right SCOM can't read AD-Group and put then in an Schedule maintenance mode. SCOM
    can read reg value as exempel.
    IS there any smar way to make the SCOM Maintenance Mode Schedule dynamic?
    I found this
    http://www.scom2k7.com/scom-2012-maintenance-mode-scheduler/?
    /SaiTech

    You could use Orchestrator to put the servers from a specific collection, or AD group, in maintenance mode in SCOM. For an example see:
    http://www.systemcentercentral.com/orchestrator-how-to-scom-maintenance-mode-for-windows-computers-in-an-sccm-collection/
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • Unable to enter maintenance mode - dtrt1000

    Over the last few weeks my box is almost useless.  With frequency it only part records, freezes requiring rebooting, momintary screen blanks, and is generally a pain in the rear.  I've tried to get into maintenance mode to try and reset it, but following the guide from Youview it doesn't work, and the box just starts as normal.
    My understanding is that you (1) Switch the box off from the back (2) Switch it back on after 30secs (3) Press the power button and immediately hold of the -vol button until the splash screen appears...Then you can access the menu.
    I've tried holding the holiding the -vol button before the power button, holding it immediately after power button, holding it until the nearly ready screen, in low and high eco modes etc but get the same result, it just goes straight into normal programes???

    1 Start with the YouView box powered off from the switch on the REAR panel power button
    2. Power back on the YouView box using the REAR panel power button
    3. When the FRONT power button is illuminated with an orange circle, press the FRONT panel power button firmly once and it will turn blue 
    4. Immediately press and hold the "VOL-" button which can be found on the right of the FRONT panel the first silver button. 
    5. A message saying "Enter Maintenance Mode Y/N (Y: POWER)" appears on the TV screen
    So if I understand correctly your experience is that steps 1, 2 & 3 occur but when doing step 4  the message step 5 (does not occur ) and your box boots as normal.
    My own (historic ) experience is that the timing of stages 3 and 4 is quite tight - ie the power button turning blue followed immediately by the VOL- button being pressed and held.
    Your options if the maintenence mode will not  work are to contact BT support and seek their advice or if you are not concerned about the recordings remaining on the box you can do a factory reset from from main Youview menu
    https://community.youview.com/youview/topics/top_tip_soft_reset_reboot_power_cycling_maintenance_mod...

  • All services stuck in maintenance mode

    I've got a problem on Solaris 10. All of the enabled inet services are in maintenance mode. rlogin, ftp, telnet, stlisten, xfs, etc, etc - are all in maintenance mode. The inetadm command shows no online services, only disabled and maintenance. I've tried clearing them with svcadm but they won't clear. It won't show any explanation for why.
    What could be wrong to cause this?
    Thanks for any suggestions.
    Randy

    Thanks very much for the very helpful suggestions. svcs -xv does not show anything helpful - for the Reason, simply "Restarter gave no explanation". The svc:/network/inetd:default is indeed enabled and healthy.
    /var/adm/messages, however, has information that might point to the problem. Regrettably, I don't understand the message and am hoping someone here can enlighten me. For each of the services that is in maintenance mode, these messages appear:
    Nov 3 17:59:44 trsun006 inetd[322]: [ID 702911 daemon.error] Property exec for method inetd_start of instance svc:/network/login:rlogin is invalid
    Nov 3 17:59:44 trsun006 inetd[322]: [ID 702911 daemon.error] Invalid configuration for instance svc:/network/login:rlogin, placing in maintenance
    I don't understand what it means by "Property exec for method inetd_start ... is invalid".
    I issued these commands-
    [trsun006 27] sbin > inetadm -l rlogin | grep exec
    exec="/usr/sbin/in.rlogind"
    [trsun006 28] sbin > ls -l /usr/sbin/in.rlogind
    -r-xr-xr-x 1 root bin 36372 Jan 22 2005 /usr/sbin/in.rlogind*
    How can I debug this problem?
    Randy

  • Need to place the SCOM agents in Maintenance Mode automatically during Patching activity

    Hi,
    I have a requirement to place the SCOM agent servers in MM automatically during shceduled patching every month. I have gone through few blogs but could not find an apt solution for SCOM 2012 R2 environment.
    I think the process should be..
     1. Create a management pack to monitor all servers for event 1074 (or/and 22), which gets triggere during the patching
     2. Write some powershell to put a machine into maintenance mode.
     3. Trigger the powershell script to run when needed.
    Any suggestions please?
    Thanks

    Where doing this in our environment. We have a SCOM monitor looking for Reboot events (ID 1074) where the event contains Shutdown Type: Reboot. the monitor creates an Informational alert which Orchestrator picks up and then sets the machine in MM for 30
    minutes. So its any time the machine is intentionally rebooted. You can have it look for CcmExec in the Event description (assuming you're using SCCM) if you only want it to work when being patched. 
    - Slow is smooth and smooth is fast.

  • 'Update' maintenance mode in transaction PRAA

    Hi,
    We are trying to create an employee vendor using the transaction PRAA by selecting the 'Update' maintenance mode.
    The issue is that the clerk's email address is being copied from the reference vendor if the personnel does not have an email address maintained in the HR records.
    Please could you let me know if this is the standard functionality.
    Thank you.

    Hello
    Not sure that is a standard functionnality. You should check user-exit and BAdIs implemented in your system for PRAA... (there is 2 exit).
    If not you should open an incident to SAP because it doesnt looks like very clean to me to copy the email from template.

  • SQL Query for maintenance mode in SCOM

    Hi all
    I was wondering if I can find a query about this request:
    - Found all the Servers that were restart without the maintenance mode were actived ?
    It's to make a Report To include in Reporting Services.
    sorry for my English :)
    Thank you very much and have a good day

    Your question seems related to SCOM. SCOM may use SQL Server, but to answer the question, I guess one needs to know SCOM, so maybe you should try a forum for that product? I found
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/home?forum=operationsmanagergeneral
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Solaris 10 disk mirror partition goes in maintenance mode at reboot

    Hello
    I have got solaris 10 installed on a Sun machine with 2 disks mirrorred to each other. There also security toolkit 4.2 installed. Now every time the system reboots and I do a metastat the mirror partitions goes in maintenance mode and I have to individually metasync the mirrors after every reboot.
    I guess this due to the security toolkit playing up. Would really appreciate any help to sort this out. The mirrors should automatically resync after system reboot.
    Thanks in advance.
    Pioneer

    Hi yes I did run the metaroot. If I manually metasync its all OK. My problem is the partition does not auto sync after the system boots.
    I guess this is someting to do with the security toolkit 4.2 playing up not disabling some services at boot. Have any one faced this issue ?
    Many Thanks
    Pioneer

  • Maintenance Mode For One Monitor

    Is it possible to place one monitor in maintenance mode? Not the entire computer or object, but just that one monitor? I don't want other monitors for that object to be silenced though.

    Hi,
    A Windows Schedule task,
    http://technet.microsoft.com/en-us/library/cc748993.aspx
    Please read this one:
    Management Pack for the SCOM 2012 Maintenance Mode Scheduler
    http://blog.tyang.org/2014/05/22/management-pack-scom-2012-maintenance-mode-scheduler/
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Failed to get Monitor - Start Maintenance Mode

    Hi,
    Am struggling with a problem with Orchestrator R2 apparently not recognising output from a Monitor alert step in a run book.  I have Orchestrator 2012R2 and SCOM 2012R2 configured.  Orchestrator is co-located with VMM2012R2.
    Operating system for all is Windows server 2012
    I have installed and deployed the Orchestrator R2 Integration packs which in deployment manager state version 7.2
    I have checked to ensure that both Orchestrator, SCOM and VMM are all R2 (They are)
    I am looking to create a runbook that will start services as per the link here: (Thanks to Jakob for this)
    http://blog.coretech.dk/jgs/sco-2012-scom-2012-best-practice-monitor-alert-and-restart-a-service/
    I can test the connection to the SCOM server - fine
    I create the monitor alert step and test - fine
    I create the start maintenance mode step and get the following error:
    Filed to get Monitor.  The exception was "An object of class MonitoringObject with ID 00000000-0000-0000-0000-000000000000 was not found.".
    I have used the runbook tester and the monitoringobjectfullname is present in the output for the start maintenance mode step.
    However irrespective of the variable that I attempt to use in start maintenance mode step I continue to get the same error as above.
    The monitor alert step completes with no issues, but everytime on the start maint mode step it fails.
    I have validated the SCOM connection account has all the appropriate SCOM permissions.  I have also provided it with full domain admin rights, but with no success. 
    Any ideas on how to troubleshoot this would be welcomed
    Thanks in advance

    Hi Stefan,
    A little extension of your approach as this is only usable if you want to set a Windows Server into Maintenance Mode - but not e.g. for Distributed Apps
    I just required the "Start Maintenance Mode" Activity to set a distributed app and a websphere application server instance (which is not linked with the server itself). And I did not find any documentation how to fill the field - only for Windows
    Computer.
    So I'll post my result on how to get the value which needs to be entered within the "Monitor" field:
    (PowerShell - Use "Activities > System > Run .Net Script > Type: Powershell)
    Import-Module OperationsManager
    $object= Get-SCOMMonitoringObject -displayname "<desired object displayname";
    # or use the ID instead:
    # $object = Get-SCOMMonitoringObject -ID "<ID of object>";
    $name = $object.displayname;
    $fullname = $object.fullname;
    $monitor = $name + " : " + $fullname
    Then put $monitor within "published data" and you can use it directly in the "Start Maintenance Mode" Activity.
    This only works if the runbook is running on a SCOM management server as it requires the SCOM Powershell Module. But at least it somehow shows the syntax.
    Best Regards
    Klaus
    Austria

Maybe you are looking for

  • Early 2008 Video Card Replacement Question

    BACKGROUND Hardware Overview: Model Name:                       Mac Pro Model Identifier:                  MacPro3,1 Processor Name:                  Quad-Core Intel Xeon Processor Speed:                  2.8 GHz Number of Processors:         2 Total

  • Bootcamp XP wont recognize my wifi interwebz

    ok i watched about 5 videos explaning detail by detail how to install bootcamp and windows xp, so therefore i did nothing wrong there, i did all that, and then when i reboot and hold the option keys the things come up i select XP and then i go into n

  • Need help with performance for very very huge tables...

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production. My DB has many tables and out of which I am interested in getting data from product and sales. select /*parallel 32*/count(1) from ( select /*parallel 32*/distinct prod_cod

  • Purge a process Instance

    Hi, I want to use the ProcessManager API to purge some specific long lived process Instances like this : pm.purgeProcessInstance(invocationID); But i didn't find a way to get the invocation ID of my process instance. I use the TaskManagerQueryService

  • No Adobe support response for 1 month!? Anyone there?

    I have had an ongoing support ticket going with Adobe about a very problematic error (the overflow converting ratio denominators one! - I've tried the usual workarounds/fixes) that has completely halted one of our projects since moving over to CS4 an