A lightweight domain redirect service for the International Blockchain Olympiad (IBCOL) website. This service redirects traffic from the apex domain (ibcol.org
) to the www subdomain (www.ibcol.org
).
This repository contains a simple, yet effective domain redirection service built using ZEIT Now (now Vercel). It ensures that all traffic to the apex domain is properly redirected to the www subdomain with appropriate HTTP status codes.
- 301 Permanent Redirects: Ensures search engines update their indexes
- Path Preservation: Maintains URL paths during redirection
- Global Deployment: Deployed across all regions for low-latency redirects
- Zero Maintenance: Serverless architecture requires no ongoing maintenance
The service uses ZEIT Now's routing configuration to handle redirects:
{
"version": 2,
"name": "ibcol-towww",
"alias": ["ibcol.org"],
"regions": ["all"],
"routes": [
{
"src": "/(.*)",
"status": 301,
"headers": { "Location": "https://www.ibcol.org/$1" }
}
]
}
This configuration:
- Captures all incoming requests to any path on the apex domain
- Returns a 301 (Permanent Redirect) status code
- Preserves the original path in the redirect URL
- Directs users to the corresponding path on the www subdomain
The service is deployed using the ZEIT Now CLI:
now --team ibcol && now alias --team ibcol
This command deploys the service and sets up the domain alias in a single step.
The IBCOL ecosystem consists of several interconnected projects:
- ibcol - Main website for the International Blockchain Olympiad
- ibcol-micro-graphql-api - GraphQL API service for IBCOL applications
The International Blockchain Olympiad (IBCOL) is an annual competition founded in 2017 as a platform to boost technical excellence among youths in blockchain and trust technologies. It provides a space for students to showcase innovative blockchain solutions to real-world problems.
IBCOL's mission is to promote "Blockchain Without Bullsh*t" - focusing on the technical merits and practical applications of blockchain technology rather than speculative aspects.
This project is proprietary and not licensed for public use.
- Breaking Bad Interactive - bbi.io
- William Li - williamli.io