<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
      <loc>https://www.coinatlasnav.com/</loc>
          <lastmod>2026-09-04</lastmod>
              <changefreq>weekly</changefreq>
                  <priority>1.0</priority>
                    </url>
                      <url>
                          <loc>https://www.coinatlasnav.com/okx-register/</loc>
                              <lastmod>2026-09-04</lastmod>
                                  <changefreq>monthly</changefreq>
                                      <priority>0.9</priority>
                                        </url>
                                          <url>
                                              <loc>https://www.coinatlasnav.com/binance-register/</loc>
                                                  <lastmod>2026-09-04</lastmod>
                                                      <changefreq>monthly</changefreq>
                                                          <priority>0.9</priority>
                                                            </url>
                                                            </urlset>
                                                            EOF

                                                            printf '
                                                            [3/4] Setting canonical redirect to www...
                                                            '
                                                            sudo tee /etc/nginx/sites-available/coinatlasnav >/dev/null <<'EOF'
                                                            server {
                                                                listen 80;
                                                                    listen [::]:80;
                                                                        server_name coinatlasnav.com www.coinatlasnav.com;
                                                                            return 301 https://www.coinatlasnav.com$request_uri;
                                                                            }

                                                                            server {
                                                                                listen 443 ssl;
                                                                                    listen [::]:443 ssl;
                                                                                        server_name coinatlasnav.com;

                                                                                            ssl_certificate /etc/letsencrypt/live/coinatlasnav.com/fullchain.pem;
                                                                                                ssl_certificate_key /etc/letsencrypt/live/coinatlasnav.com/privkey.pem;
                                                                                                    include /etc/letsencrypt/options-ssl-nginx.conf;
                                                                                                        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

                                                                                                            return 301 https://www.coinatlasnav.com$request_uri;
                                                                                                            }

                                                                                                            server {
                                                                                                                listen 443 ssl;
                                                                                                                    listen [::]:443 ssl;
                                                                                                                        server_name www.coinatlasnav.com;

                                                                                                                            root /var/www/coinatlasnav;
                                                                                                                                index index.html;

                                                                                                                                    ssl_certificate /etc/letsencrypt/live/coinatlasnav.com/fullchain.pem;
                                                                                                                                        ssl_certificate_key /etc/letsencrypt/live/coinatlasnav.com/privkey.pem;
                                                                                                                                            include /etc/letsencrypt/options-ssl-nginx.conf;
                                                                                                                                                ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

                                                                                                                                                    location / {
                                                                                                                                                            try_files $uri $uri/ =404;
                                                                                                                                                                }
                                                                                                                                                                }
                                                                                                                                                                EOF

                                                                                                                                                                printf '
                                                                                                                                                                [4/4] Testing and reloading...
                                                                                                                                                                '
                                                                                                                                                                sudo nginx -t
                                                                                                                                                                sudo systemctl reload nginx

                                                                                                                                                                printf '
                                                                                                                                                                --- verification ---
                                                                                                                                                                '
                                                                                                                                                                curl -I https://coinatlasnav.com/ --resolve coinatlasnav.com:443:43.135.121.79 --max-time 15 | sed -n '1,12p'
                                                                                                                                                                printf '
                                                                                                                                                                --- www ---
                                                                                                                                                                '
                                                                                                                                                                curl -I https://www.coinatlasnav.com/ --resolve www.coinatlasnav.com:443:43.135.121.79 --max-time 15 | sed -n '1,20p'
                                                                                                                                                                printf '
                                                                                                                                                                --- sitemap ---
                                                                                                                                                                '
                                                                                                                                                                curl -s https://www.coinatlasnav.com/sitemap.xml --resolve www.coinatlasnav.com:443:43.135.121.79 --max-time 15
                                                                                                                                                                printf '
                                                                                                                                                                DONE_WWW_SEO_CANONICAL
                                                                                                                                                                '
