Edited at

apache で、何がどうあろうと,/に飛ばす設定

More than 5 years have passed since last update.

何がどうあろうと,/に飛ばす設定。

sorryサーバとかで。


sorryサーバ、httpd.conf

RewriteEngine On

### Exclude maintenance files
RewriteCond %{REQUEST_URI} !^\/index\.html
RewriteCond %{REQUEST_URI} !^\/sorry\.png
RewriteCond %{REQUEST_URI} !^\/yps\.css
RewriteCond %{REQUEST_URI} !/css/
RewriteCond %{REQUEST_URI} !/img/
RewriteCond %{REQUEST_URI} !^/$

### Redirect to maintenance files
RewriteRule ^/.* / [R=302,L]
RewriteRule ^/index.html / [R=302,L]