Domain Redirect Setup Instructions
Domain Redirect Setup Instructions
Goal
Redirect these domains to your main website:
hcyberphysical.net→https://www.hcyberphysical.comhcyberphysical.org→https://www.hcyberphysical.com
Option 1: Squarespace Domain Redirects (If Available)
If your .net and .org domains are also managed in Squarespace:
- Log into Squarespace
- Go to Settings → Domains
- For each domain (hcyberphysical.net and hcyberphysical.org):
- Click on the domain
- Look for “Redirect” or “Forwarding” option
- Set redirect to:
https://www.hcyberphysical.com - Choose redirect type: 301 Permanent Redirect (better for SEO)
Option 2: Domain Registrar Redirects
If your .net and .org domains are registered elsewhere:
- Log into your domain registrar (where you bought the domains)
- Look for “Domain Forwarding” or “URL Redirect”
- Set up redirects:
- Source:
hcyberphysical.net - Destination:
https://www.hcyberphysical.com - Type: 301 Permanent Redirect
- Repeat for
hcyberphysical.org
- Source:
Option 3: Cloudflare Redirects (If Using Cloudflare)
If you move DNS management to Cloudflare:
- Go to Cloudflare dashboard
- Add both domains (hcyberphysical.net and hcyberphysical.org)
- Set up Page Rules:
- Rule 1:
*hcyberphysical.net/*→ Redirect tohttps://www.hcyberphysical.com/$1 - Rule 2:
*hcyberphysical.org/*→ Redirect tohttps://www.hcyberphysical.com/$1 - Settings: 301 Permanent Redirect
- Rule 1:
Option 4: GitHub Pages with Separate CNAME Files (Not Recommended)
This approach requires separate repositories or managing multiple CNAME files, which is complex and not ideal.
Recommended Approach
Best Option: Use your domain registrar’s forwarding/redirect feature. Most registrars support this:
- GoDaddy: Domain forwarding in domain settings
- Namecheap: URL redirect records
- Google Domains: Synthetic records (redirect)
- Cloudflare: Page Rules (if using Cloudflare DNS)
What to Do Right Now
- Check where your .net and .org domains are registered
- Log into that registrar’s control panel
- Look for “Domain Forwarding”, “URL Redirect”, or “Domain Redirect”
- Set both domains to redirect to:
https://www.hcyberphysical.com - Use 301 Permanent Redirect (important for SEO)
Testing
After setting up redirects, test them:
curl -I http://hcyberphysical.net
curl -I http://hcyberphysical.org
You should see HTTP/1.1 301 Moved Permanently and Location: https://www.hcyberphysical.com
Important Notes
- 301 vs 302 redirects: Use 301 (Permanent) - better for SEO
- SSL/HTTPS: Ensure your main site (www.hcyberphysical.com) has SSL enabled (GitHub Pages does this automatically)
- Propagation: Redirects typically work immediately, but DNS changes can take up to 48 hours