109 lines
2.5 KiB
Markdown
109 lines
2.5 KiB
Markdown
## 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})$
|
|
RewriteRule ^([0-9]{4})$ https://archive.harucon.org.il/$1 [R=301,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 ^$ /2024/ [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})$
|
|
RewriteRule ^([0-9]{4})$ https://archive.animatsuri.org.il/$1 [R=301,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
|
|
|
|
``` |