Skip to content

Commit

Permalink
Merge pull request #8 from DIVD-NL/back_to_vitage
Browse files Browse the repository at this point in the history
back to old site
  • Loading branch information
MrSeccubus authored Apr 3, 2024
2 parents bc492b7 + 0cc851e commit a8295ff
Showing 1 changed file with 42 additions and 46 deletions.
88 changes: 42 additions & 46 deletions deploy/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,28 @@ SetEnvIfNoCase X-HTTPS-Session Yes HTTPS=on
RewriteCond %{HTTP_HOST} ^divd\.nl [NC]
RewriteRule (.*) https://www.divd.nl/$1 [r=301,L]

# Serve www from divd-nl-2024
# Serve www from divd-nl
RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} !^/divd-nl [NC]
RewriteRule (.*) divd-nl-2024/$1 [L]
RewriteRule (.*) divd-nl/$1 [L]

# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} ^/divd-nl-2024.*[^/]$ [NC]
RewriteCond %{REQUEST_URI} ^/divd-nl.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^divd-nl/(.*) /$1/ [L,r=301]

## Serve www from divd-nl-2024
#RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} !^/divd-nl-2024 [NC]
#RewriteRule (.*) divd-nl-2024/$1 [L]
#
## Redirect when I summon a directory without a trailing slash
#RewriteCond %{HTTP_HOST} ^www\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} ^/divd-nl-2024.*[^/]$ [NC]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^divd-nl-2024/(.*) /$1/ [L,r=301]

# csirt.divd.nl

# Serve csirt from csirt-divd-nl
Expand All @@ -47,16 +58,29 @@ RewriteRule ^csirt-divd-nl/(.*) /$1/ [L,r=301]
RewriteCond %{HTTP_HOST} ^divd\.club [NC]
RewriteRule (.*) https://www.divd.club/$1 [r=301,L]

# Serve divd.club from divd-club
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} !^/divd-club [NC]
RewriteRule (.*) divd-club/$1 [L]
# beta.divd.nl

# Serve beta.divd.nl from divd-nl-2024
RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} !^/divd-nl-2024 [NC]
RewriteRule (.*) divd-nl-2024/$1 [L]

# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} ^/divd-club.*[^/]$ [NC]
RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} ^/divd-nl-2024.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^divd-club/(.*) /$1/ [L,r=301]
RewriteRule ^divd-nl-2024/(.*) /$1/ [L,r=301]

## Serve beta.divd.nl from divd-nl
#RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} !^/divd-nl [NC]
#RewriteRule (.*) divd-nl/$1 [L]

## Redirect when I summon a directory without a trailing slash
#RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} ^/divd-nl.*[^/]$ [NC]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^divd-nl/(.*) /$1/ [L,r=301]

# cyber-wear.nl

Expand All @@ -75,46 +99,18 @@ RewriteCond %{REQUEST_URI} ^/cyber-wear-nl.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^cyber-wear-nl/(.*) /$1/ [L,r=301]

# divd.fund

# recirect divd.fund to www
RewriteCond %{HTTP_HOST} ^divd\.fund [NC]
RewriteRule (.*) https://www.divd.fund/$1 [r=301,L]

# Serve divd.fund from divd.fund
RewriteCond %{HTTP_HOST} ^www\.divd\.fund [NC]
RewriteCond %{REQUEST_URI} !^/divd.fund [NC]
RewriteRule (.*) divd.fund/$1 [L]

# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^www\.divd\.fund [NC]
RewriteCond %{REQUEST_URI} ^/divd\.fund.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^divd.fund/(.*) /$1/ [L,r=301]

# beta.divd.nl

## Serve beta.divd.nl from beta
#RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} !^/beta [NC]
#RewriteRule (.*) beta/$1 [L]
#
## Redirect when I summon a directory without a trailing slash
#RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
#RewriteCond %{REQUEST_URI} ^/beta.*[^/]$ [NC]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^beta/(.*) /$1/ [L,r=301]
# divd.club

# Serve beta.divd.nl from divd-nl
RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} !^/divd-nl [NC]
RewriteRule (.*) divd-nl/$1 [L]
# Serve divd.club from divd-club
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} !^/divd-club [NC]
RewriteRule (.*) divd-club/$1 [L]

# Redirect when I summon a directory without a trailing slash
RewriteCond %{HTTP_HOST} ^beta\.divd\.nl [NC]
RewriteCond %{REQUEST_URI} ^/divd-nl.*[^/]$ [NC]
RewriteCond %{HTTP_HOST} ^www\.divd\.club [NC]
RewriteCond %{REQUEST_URI} ^/divd-club.*[^/]$ [NC]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^beta/(.*) /$1/ [L,r=301]
RewriteRule ^divd-club/(.*) /$1/ [L,r=301]

# divd.global

Expand Down

0 comments on commit a8295ff

Please sign in to comment.