RewriteEngine on
php_flag magic_quotes_gpc off
php_flag register_globals off
php_value memory_limit "200M"
php_value upload_max_filesize "100M"
php_value post_max_size "110M"
php_flag short_open_tag On

DirectoryIndex index.html index.cgi index.php index.shtml catalog.php
Rewritebase /


RewriteCond %{HTTP_HOST} ^lic.home-world.net$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.lic.home-world.net$ [NC,OR]
RewriteCond %{HTTP_HOST} ^news.lic.home-world.net$ [NC]
RewriteRule ^$ http://lic.home-world.net/top/index/school/lic [L]

RewriteCond %{HTTP_HOST} ^tokyo-bayside.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.tokyo-bayside.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^news.tokyo-bayside.com$ [NC]
RewriteRule ^$ http://www.tokyo-bayside.com/top/index/school/tbs [L]

RewriteCond %{HTTP_HOST} ^jp.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.jp.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^ujl.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.ujl.uenohouka.ac.jp$ [NC]
RewriteRule ^$ http://jp.uenohouka.ac.jp/top/index/school/ulb [L]

RewriteCond %{HTTP_HOST} ^cgp.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.cgp.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^ujb.uenohouka.ac.jp$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.ujb.uenohouka.ac.jp$ [NC]
RewriteRule ^$ http://cgp.uenohouka.ac.jp/top/index/school/ujl [L]


#[admin][All Request]
RewriteRule ^admin$ admin/ [L]
RewriteRule ^admin/(.*)$ admin.php

#[backyard][All Request]
RewriteRule ^staff$ staff/ [L]
RewriteRule ^staff/(.*)$ staff.php

#[catalog][All Request]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) catalog.php [L]


# -----------------------------------------
# TRASH
# -----------------------------------------

# RewriteRule ^$ http://www2.home-world.net/ [L]
# RewriteRule ^index.html$ http://www2.home-world.net/ [L]
# RewriteRule ^index.php$ http://www2.home-world.net/ [L]
