This is a simple short URL generator that uses only one page to handle all short URLs called 404 page. Yes, 404 page can handle all short links and create short URLs. This is a nerd technique that is very useful trick.
- Fork and star this repository.
- Enable GitHub Pages or choose any other hosting service, such as Netlify or Vercel.
- Edit your links.json file:
{ "example": "https://example.com/", "google": "https://google.com/" "github": "https://github.com/" } - 404 page handles all the short links.
- Share your short links:
https://yourdomain.com/example - Users get redirected instantly to the target URL!