Skip to content

Commit f7379c2

Browse files
committed
Redirect URL from /~drafts/networks to /networks
1 parent ba59b3e commit f7379c2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

website/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
RewriteEngine On
2+
RewriteCond %{HTTP_HOST} ^newcoder.io[nc]
3+
RewriteRule ^(.*)$ http://www.newcoder.io/$1 [r=301,nc]
4+
RedirectMatch 301 /~drafts/networks/(.*) /networks/$1
5+
6+
ErrorDocument 404 /404.html

website/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ containers:
3535
url: /begin/<slug>/
3636
workshop:
3737
url: /workshop/<slug>/
38+
include: [".htaccess"]

0 commit comments

Comments
 (0)