This repository hosts the central landing page for romitagl.com, serving as the main hub for all subdomains. It is deployed via GitHub Pages.
- Domain: romitagl.com
- Purpose: Acts as a landing page linking to all subdomain websites.
- Hosting: GitHub Pages
- Go to your repository (
www) → Settings → Pages. - Under "Custom domain", enter:
romitagl.com. - Enable HTTPS.
Set the following records in your domain registrar (e.g., Cloudflare, GoDaddy, Namecheap):
Type: A
Name: @
Value: 185.199.108.153
Value: 185.199.109.153
Value: 185.199.110.153
Value: 185.199.111.153
TTL: Auto
Type: CNAME
Name: www
Value: romitagl.github.io
TTL: Auto
For each GitHub repository (e.g., web-tools), repeat the following steps:
-
Go to GitHub Pages settings → Enable GitHub Pages.
-
Set a custom domain (e.g.,
web-tools.romitagl.com). -
Update DNS with a CNAME record:
Type: CNAME Name: web-tools Value: romitagl.github.io TTL: Auto
Create a sitemap.xml in public/sitemap.xml to help search engines index all subdomains:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://romitagl.com/</loc>
</url>
<url>
<loc>https://web-tools.romitagl.com/</loc>
</url>
</urlset>Add robots.txt in public/robots.txt:
User-agent: *
Allow: /
Sitemap: https://romitagl.com/sitemap.xml
- Use dnschecker.org to verify DNS changes.
- Ensure
romitagl.comand all subdomains load correctly.
romitagl.com (Landing Page - GitHub Pages, AdSense)
├── web-tools.romitagl.com (GitHub Pages for Web Tools)
├── blog.romitagl.com (GitHub Pages for Blog)
└── other-subdomains...
With this setup:
romitagl.comserves as the main entry point and AdSense-verified domain.- Each subdomain is a separate GitHub repository using GitHub Pages.
- AdSense ads can be displayed across
romitagl.comand its subdomains. - A
sitemap.xmlensures search engine visibility. - Free Website Analytics: https://www.cloudflare.com/en-gb/web-analytics/