This repository hosts the central landing page for romitagl.com, serving as the main hub for all subdomains. It is deployed via GitHub Pages and configured with Google AdSense for monetization.
- Domain: romitagl.com
- Purpose: Acts as a landing page linking to all subdomain websites.
- Hosting: GitHub Pages
- Monetization: Google AdSense enabled
- 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
-
Verify your domain with AdSense:
-
Sign in to Google AdSense.
-
Add
romitagl.com
as the main site. -
Place the required
<meta>
tag in<head>
ofindex.html
:<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" crossorigin="anonymous"></script>
-
-
Ensure all subdomains also include this AdSense snippet if they will serve ads.
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.com
and all subdomains load correctly. - Check if Google AdSense is displaying ads on
romitagl.com
.
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.com
serves 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.com
and its subdomains. - A
sitemap.xml
ensures search engine visibility.