A simple service for hosting a URL shortener on a custom domain through GitHub Pages.
The file 404.html
catches all routes and loads a small script from src/redirect.js
. The script checks the URL against the routes defined in entries.js
and performs a client-side redirect if the route was found.
- Fork the repository
- Define your own routes in
entries.js
- Enable GitHub Pages in the repository settings
- (Optional) Set up your custom domain with GitHub Pages
The redirects are now available at yourdomain.com/your-entry