Browse Source

Handle both '+' and '~' url redirects for github downloads

master
falkTX 5 years ago
parent
commit
865ee7674d
4 changed files with 16 additions and 20 deletions
  1. +4
    -5
      pool/free-v5/.htaccess
  2. +4
    -5
      pool/free/.htaccess
  3. +4
    -5
      pool/non-free-v5/.htaccess
  4. +4
    -5
      pool/non-free/.htaccess

+ 4
- 5
pool/free-v5/.htaccess View File

@@ -4,9 +4,8 @@ RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} \+
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1\.$2 [R=301,L,QSA]
RewriteCond %{REQUEST_URI} \~
RewriteRule ^(.*)\~(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1\.$2 [R=301,L,QSA]
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1 [R=301,L,QSA]

+ 4
- 5
pool/free/.htaccess View File

@@ -4,9 +4,8 @@ RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} \+
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]
RewriteCond %{REQUEST_URI} \~
RewriteRule ^(.*)\~(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

+ 4
- 5
pool/non-free-v5/.htaccess View File

@@ -4,9 +4,8 @@ RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} \+
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1\.$2 [R=301,L,QSA]
RewriteCond %{REQUEST_URI} \~
RewriteRule ^(.*)\~(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1\.$2 [R=301,L,QSA]
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/gcc5/$1 [R=301,L,QSA]

+ 4
- 5
pool/non-free/.htaccess View File

@@ -4,9 +4,8 @@ RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\+
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} \+
RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]
RewriteCond %{REQUEST_URI} \~
RewriteRule ^(.*)\~(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]
RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA]

Loading…
Cancel
Save