Skip to content

Commit

Permalink
Merge pull request #1911 from mashehu/schema-delete-default-null
Browse files Browse the repository at this point in the history
restore htaccess settings
  • Loading branch information
mashehu committed Aug 7, 2023
2 parents 83bfa51 + da75b6a commit 4cde306
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions ignored_repos.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ repos[] = "testpipeline"
repos[] = "tools"
repos[] = "tower-action"
repos[] = "vscode-extensionpack"
repos[] = "website"

[ignore_topics]
topics[] = "nf-core"
Expand Down
18 changes: 9 additions & 9 deletions public_html/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
RewriteRule ^/?bilibili/?$ https://space.bilibili.com/1280248035?spm_id_from=333.788.b_765f7570696e666f.1 [R=301,L]

# Redirect http to https
RewriteCond %{HTTP_HOST} ^oldsite\.nf-co\.re [NC]
RewriteCond %{HTTP_HOST} ^nf-co\.re [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://oldsite.nf-co.re/$1 [R,L]
RewriteRule ^(.*)$ https://nf-co.re/$1 [R,L]

# Remove www. from URL
RewriteCond %{HTTP_HOST} ^www.oldsite.nf-co.re$ [NC]
RewriteRule ^(.*)$ https://oldsite.nf-co.re/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.nf-co.re$ [NC]
RewriteRule ^(.*)$ https://nf-co.re/$1 [L]

# Remove trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)/$ /$1 [L,R=301]
RewriteRule (.*)/$ /$1 [L]

# Return join names to join.php
RewriteCond %{REQUEST_URI} ^/join/(.*)$
Expand All @@ -46,7 +46,7 @@

# Remove double-slashes
RewriteCond %{REQUEST_URI} ^(.*)/{2,}(.*)$
RewriteRule (.*) %1/%2 [R=301,L]
RewriteRule (.*) %1/%2 [L]

# Run PHP without filename extension
RewriteCond %{REQUEST_FILENAME} !-d
Expand All @@ -55,15 +55,15 @@

# Remove trailing /index from URL
RewriteCond %{REQUEST_URI} ^(.*)/index$
RewriteRule (.*) %1 [R=301,L]
RewriteRule (.*) %1 [L]

# Remove trailing /README from URL
RewriteCond %{REQUEST_URI} ^(.*)/README$
RewriteRule (.*) %1 [R=301,L]
RewriteRule (.*) %1 [L]

# Redirect .md URLs to remove the extension
RewriteCond %{REQUEST_URI} ^(.*)\.md$
RewriteRule (.*) %1 [R=301,L]
RewriteRule (.*) %1 [L]

# Return 404 if original request is .php
RewriteCond %{THE_REQUEST} \.php[/\s?] [NC]
Expand Down

0 comments on commit 4cde306

Please sign in to comment.