3.1 KiB
3.1 KiB
AMAI Web Server
Folder Layout:
public_html
├── .htaccess (1)
├── amai.org.il (WordPress installation files)
├── site_templates
│ ├── harucon_template
│ └── animatsuri_template
└── convention_sites
├── harucon
│ ├── current
│ │ ├── .htaccess (2)
│ │ └── Current Harucon site installation files
│ └── archive
│ ├── .htaccess (3)
│ └── 20xx
│ └── 20xx Harucon site installation files (without .htaccess)
└── animatsuri
├── current
│ ├── .htaccess (4)
│ └── Current Animatsuri site installation files
└── archive
├── .htaccess (5)
└── 20xx
└── 20xx Animatsuri site installation files (without .htaccess)
.htaccess (1)
# Start of the .htaccess for amai.org.il (Main AMAI website)
RewriteEngine On
# Block access to /convention_sites/ and return 404
RewriteCond %{REQUEST_URI} ^/convention_sites/
RewriteRule ^(.*)$ - [R=404,L]
# Block access to /site_templates/ and return 404
RewriteCond %{REQUEST_URI} ^/site_templates/
RewriteRule ^(.*)$ - [R=404,L]
# End of the .htaccess for amai.org.il
.htaccess (2)
# Start of the .htaccess for harucon.org.il (Winter Convention)
RewriteEngine On
# Redirect year-based URLs to the archive site
RewriteCond %{REQUEST_URI} ^/([0-9]{4})(/.*)?$
# Check if corresponding archive folder exists
RewriteCond ../archive/%1 -d
RewriteRule ^([0-9]{4})(/.*)?$ https://archive.harucon.org.il/%1%2 [R=301,L]
# Otherwise, redirect to the root site
RewriteCond %{REQUEST_URI} ^/(\d{4})(/.*)?$ [NC]
RewriteRule ^(\d{4})(/.*)?$ https://harucon.org.il/ [R=302,L]
# End of the .htaccess for harucon.org.il
.htaccess (3)
# Start of the .htaccess for archive.harucon.org.il (Winter Convention Archive)
RewriteEngine On
# Redirect to a specific year if accessing the root archive site
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ /2025/ [R=301,L]
# End of the .htaccess for archive.harucon.org.il
.htaccess (4)
# Start of the .htaccess for animatsuri.org.il (Summer Convention)
RewriteEngine On
# Redirect year-based URLs to the archive site
RewriteCond %{REQUEST_URI} ^/([0-9]{4})(/.*)?$
# Check if corresponding archive folder exists
RewriteCond /home/hikaruj/public_html/convention_sites/animatsuri/archive/%1 -d
RewriteRule ^([0-9]{4})(/.*)?$ https://archive.animatsuri.org.il/%1%2 [R=301,L]
# Otherwise, redirect to the root site
RewriteCond %{REQUEST_URI} ^/(\d{4})(/.*)?$ [NC]
RewriteRule ^(\d{4})(/.*)?$ https://animatsuri.org.il/ [R=302,L]
# End of the .htaccess for animatsuri.org.il
.htaccess (5)
# Start of the .htaccess for archive.animatsuri.org.il (Summer Convention Archive)
RewriteEngine On
# Redirect to a specific year if accessing the root archive site
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ /2024/ [R=301,L]
# End of the .htaccess for archive.animatsuri.org.il