Unsaubere Lösung die wenn sie funktionieren würde 200 OK zurückgibt
und die Wartungsseite damit von Suchmaschinen indiziert wird!

ErrorDocument 404 /index.php

In der "index.php"
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);

UND BITTE keine HTML-Mails in Mailing-Listen und auch sonst
am besten nicht!

Am 16.05.2011 13:49, schrieb Alexander Diedler:
> Ich bekomme es nicht hin, dass alle Aufrufe an eine Domain immer mit einer 
> Wartungsseite quittiert werden sollen:
> 
>  
> 
> Httpd-vhosts.conf
> 
> ### Baustelle #########
> 
> <VirtualHost *:80>
> 
>     ServerAdmin [email protected]
> 
>     DocumentRoot "D:\\extranet\baustelle"
> 
>     ServerName XXX.XXX.XXX.XXX
> 
>     ServerAlias sub-test.domain.de         
> 
>                 AccessFileName .htaccess
> 
> RewriteEngine On
> 
> RewriteOptions Inherit
> 
>  
> 
>      ErrorLog "|D:/error.log 86400"
> 
>     CustomLog "|D:/access.log 86400" common
> 
>  
> 
>     <Directory "D:\extranet\baustelle">
> 
>                                Options Indexes FollowSymLinks
>                                AllowOverride None
>                                Order allow,deny
>                                Allow from all
> 
>     </Directory>                
> 
> </VirtualHost>
> 
> .htaccess
> 
> Options +FollowSymlinks
> RewriteEngine on
> 
> RewriteCond %{REQUEST_URI} !/baustelle.html$
> RewriteRule $ /baustelle.html [R=302,L]
> 
> Ein Aufruf : http://www.domain.de bringt entsprechende Wartungsseite, aber 
> ein http://www.domain.de/test/ bringt
> 404 und nicht entsprechend die Wartungsseite.
> 
> Alex

-- 

Mit besten Grüßen, Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm

Attachment: signature.asc
Description: OpenPGP digital signature

Antwort per Email an