Skip to navigation
Redirect temporary a whole website to a maintenance site with return 503 status code
31.01.19
503 stands for temporarily unavailable, bots may not index those sites for http and https access: RewriteEngine on RewriteCond %{HTTP_HOST} ^shopautomat.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^shopautomat.com.de$ RewriteCond %{REQUEST_URI} !under_maintenance/ RewriteCond %{ENV:REDIRECT_STATUS} !=503 ErrorDocument 503 /under_maintenance/index.html RewriteRule (.*) /under_maintenance/index.html [R=503,L] extra stetting for the subdomain: RewriteEngine on RewriteCond %{HTTP_HOST} ^www.shopautomat.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.shopautomat.com.de$ RewriteCond %{REQUEST_URI} !under_maintenance/ RewriteCond %{ENV:REDIRECT_STATUS} !=503 ErrorDocument 503 /under_maintenance/index.html RewriteRule (.*) /under_maintenance/index.html [R=503,L]
https://www.webmasterworld.com/apache/4763662.htm
Reply
Anonymous
Information Epoch 1740398407
Distrust all claims for one true way.
Home
Notebook
Contact us