Redirect a site to a maintenance page

Alias /unavailability "/opt/appdata/indispo"

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

#RedirectMatch 301 /dream* /unavailability/indispoOPTEAM.html


Below is from wiki:

Different pages for differents languages

  1. Connect to the OHS/Apache servers
  2. Edit the config file, depending on the installation it could be inside /opt/oracle/ohs10g01/ohs/confhttp.conf or inside vhosts files /opt/oracle/ohs10g01/ohs/conf/vhosts/.conf
  3. Create the maintenance folder inside DocumentRoot and place there your html pages "in the examples NetCardFRFR.htm and NetCardDEDE.htm"
  4. Add the following lines for FR and DE languages
    
  
    ServerName internet.preprod.org
    DocumentRoot "/opt/oracle/ohs10g01/ohs/htdocs/"
  
    RewriteEngine on
  
    RewriteCond %{QUERY_STRING} ^language=FR
    RewriteRule ^/NetCard/index.jsp$ maintenance/NetCardFRFR.htm [R=302,L]
    RewriteCond %{QUERY_STRING} ^language=DE
    RewriteRule ^/NetCard/index.jsp$ maintenance/NetCardDEDE.htm [R=302,L] 
  

All request to same page

  1. Connect to the OHS/Apache servers
  2. Edit the config file, depending on the installation it could be inside /opt/oracle/ohs10g01/ohs/confhttp.conf or inside vhosts files /opt/oracle/ohs10g01/ohs/conf/vhosts/.conf
  3. Create the maintenance folder inside DocumentRoot and place there your html pages "in the examples NetCardFRFR.htm and NetCardDEDE.htm"
  4. Add the following lines for index.htm
    
    ServerName customercard.decathlon.fr

    #DocumentRoot "/opt/appdata/customercard.decathlon.fr/"
    DocumentRoot "/opt/appdata/customercard.decathlon.fr/maintenance/"
    DirectoryIndex index.htm

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !/index.htm$
    RewriteCond %{REQUEST_URI} !/NetCard_files/[a-zA-Z0-9\-\.\_]*$

    RewriteRule $ /index.htm [R=302,L]   
  

A specific context to a specific page

  1. Connect to the OHS/Apache servers
  2. Edit the config file, depending on the installation it could be inside /opt/oracle/ohs10g01/ohs/confhttp.conf or inside vhosts files /opt/oracle/ohs10g01/ohs/conf/vhosts/.conf
  3. Create the maintenance folder inside DocumentRoot and place there your html pages. In that example, the folder is indispo-CC-Report.
  4. Add the following lines for index.htm
    RewriteEngine on
    RewriteRule ^/ccreport/[a-zA-Z0-9\-\.\_]*$ /indispo-CC-Report/index.html [R=302,L]
请使用浏览器的分享功能分享到微信等