Static GitHub Pages site that redirects visitors from the apex domain blowcomotion.org to the www subdomain https://www.blowcomotion.org.
This repository serves as a redirect solution for the apex/naked domain. When users visit https://blowcomotion.org, they are automatically redirected to https://www.blowcomotion.org where the main website is hosted.
Two files handle redirects for all paths:
Handles visits to blowcomotion.org/ using:
- Meta refresh:
<meta http-equiv="refresh" content="0; url=https://www.blowcomotion.org"> - JavaScript redirect: Fallback redirect using
window.location.href - Manual link: User-clickable link in case automatic redirects fail
GitHub Pages serves 404.html for any non-existent path, which:
- Captures the current path, query string, and hash
- Redirects to
www.blowcomotion.orgwith the same path preserved - Example:
blowcomotion.org/charts→www.blowcomotion.org/charts
- This repository is configured as a GitHub Pages site
- The apex domain
blowcomotion.orgis configured to point to GitHub Pages - GitHub Pages serves the
index.htmlfile when users visit the apex domain - Users are immediately redirected to
https://www.blowcomotion.org
- The page includes
<link rel="canonical" href="https://www.blowcomotion.org">to indicate the preferred URL <meta name="robots" content="noindex, nofollow">prevents search engines from indexing the redirect page- The redirect is fast (0-second delay) to minimize SEO impact
To use this redirect:
-
Configure your apex domain DNS to point to GitHub Pages:
ALIAS blowcomotion.github.io -
Enable GitHub Pages on this repository (Settings → Pages)
-
Configure your custom domain in GitHub Pages settings to
blowcomotion.org
You can test the redirect by visiting https://blowcomotion.org - it should automatically redirect to https://www.blowcomotion.org.