From d82d908bc2b963dff58baa86ff2eeaa850eb78ea Mon Sep 17 00:00:00 2001 From: maruson08 Date: Wed, 7 Oct 2026 15:41:28 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[Fix]=20Update=20Web=20Utilities=20?= =?UTF-8?q?links=20for=20v2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 1 + .github/workflows/validate.yml | 1 + README.md | 10 ++-- docs/deployment.md | 39 +++++--------- docs/migrations/h3-migration-contract.md | 4 ++ docs/migrations/h3-url-map.csv | 36 ++++++------- docs/migrations/h3.5-cutover-runbook.md | 4 ++ docs/migrations/v2.2-tool-links.md | 68 ++++++++++++++++++++++++ docs/seo.md | 22 ++++---- public/_redirects | 32 +++++------ public/products/web-utilities/index.html | 27 ++++++++-- scripts/test_h3_url_map.py | 64 ++++++++++++++++++++++ scripts/validate-h3-url-map.py | 68 ++++++++++++++++++++++-- 13 files changed, 289 insertions(+), 87 deletions(-) create mode 100644 docs/migrations/v2.2-tool-links.md create mode 100644 scripts/test_h3_url_map.py diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d87477a..319c763 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -66,6 +66,7 @@ jobs: python scripts/validate-h3-url-map.py python scripts/validate-h3-hub-cutover.py + python -m unittest discover -s scripts -p "test_*.py" echo "Validated static deployment output: public/" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index c8baaad..d685ef2 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -25,3 +25,4 @@ jobs: set -euo pipefail python scripts/validate-h3-url-map.py python scripts/validate-h3-hub-cutover.py + python -m unittest discover -s scripts -p "test_*.py" diff --git a/README.md b/README.md index ac1db18..1304f44 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,10 @@ Secure Tools products. Products and libraries remain independently maintained an ## Status -The repository now includes its information architecture, standardized product disclosure -model, and a production-polished visual system aligned with Secure Tools Web Utilities, but it -is not released as the production Hub. -Production migration has not happened: `securetools.app` remains assigned to Secure Tools Web -Utilities. The configured workflow publishes `main` only to the Cloudflare-managed `pages.dev` -validation target. +The Hub is live at `https://securetools.app/`. It discovers independently maintained +products; Web Utilities is hosted at `https://tools.securetools.app/`. +GitHub Actions validates and deploys the static `public/` directory to Cloudflare Pages. +See [the v2.2 link migration](docs/migrations/v2.2-tool-links.md) for canonical tool destinations. ## Documentation diff --git a/docs/deployment.md b/docs/deployment.md index 935012d..28b6b1e 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -39,34 +39,19 @@ workflow's short-lived `GITHUB_TOKEN` so that each upload creates or updates a v Deployment record. The workflow has only `contents: read` and `deployments: write` permissions. -## Current validation deployment +## Production identity -The current deployment target is the Cloudflare Pages-managed -`https://secure-tools-hub-53i.pages.dev` site. This endpoint is for validating the Hub -deployment path and does not mean that the Hub has become the Secure Tools production site. +`https://securetools.app/` serves the Hub. `https://tools.securetools.app/` serves Web Utilities. +The stable and immutable `secure-tools-hub-53i.pages.dev` aliases remain validation endpoints +with hostname-specific noindex headers. The Hub is a static catalog, not a tool runtime. -## Future production domain +## Redirect contract -`https://securetools.app` is **not yet connected to this repository**. It remains assigned to -Secure Tools Web Utilities. This workflow does not change DNS, configure a custom domain, or -perform the future production migration. +`public/_redirects` preserves the 18 historical apex source paths and sends them directly +to root-level canonical Web Utilities URLs with 301 responses. The root and all Hub routes +remain Hub-owned. Query strings are preserved by Pages redirect behavior. +The migration CSV documents historical sources, canonical targets, and tools-host 308 support. +See [the v2.2 link migration](./migrations/v2.2-tool-links.md). -Any production domain migration and related redirects must be handled as a separate, -explicitly reviewed milestone. - -## Prepared H3.5 deployment contract - -The unmerged H3.4B branch prepares static `public/_headers` and `public/_redirects` -artifacts. The hostname-specific header rules keep the stable and immutable -`*.secure-tools-hub-53i.pages.dev` aliases non-indexable without applying noindex to the -future custom domain. The redirects contain only the 18 explicit H3.1 legacy Web Utilities -paths and preserve each path on `https://tools.securetools.app`; the Hub root and all Hub -routes are excluded. - -Cloudflare Pages path redirects do not implement the future `www → apex` domain redirect. -That change requires a Cloudflare zone/account-level Redirect Rule or Bulk Redirect plus -proxied DNS during the coordinated H3.5 window. The exact activation and rollback order is -documented in [the H3.5 cutover runbook](./migrations/h3.5-cutover-runbook.md). - -The H3.4B pull request does not attach a custom domain, change DNS, activate a `www` rule, -modify Search Console, or deploy from its feature branch. +This content/link migration changes no DNS, custom domains, TLS, zone rules, Search Console, +or Web Utilities code. The H3.5 runbook is retained as a historical cutover record. diff --git a/docs/migrations/h3-migration-contract.md b/docs/migrations/h3-migration-contract.md index fd2c92d..009b0eb 100644 --- a/docs/migrations/h3-migration-contract.md +++ b/docs/migrations/h3-migration-contract.md @@ -1,5 +1,9 @@ # H3.1 — Domain Migration Contract and URL Inventory +> Historical H3 preparation record. The apex now serves the Hub and Web Utilities uses +> root-level canonical routes. The old same-path destination contract below is superseded +> by [the verified v2.2 migration](./v2.2-tool-links.md); do not execute this historical runbook. + Status: planning only. Nothing in this document authorizes a DNS, hosting, custom-domain, redirect, metadata, or Search Console change. Issue: [#12](https://github.com/SecureToolsProject/hub/issues/12) diff --git a/docs/migrations/h3-url-map.csv b/docs/migrations/h3-url-map.csv index 556debc..0d90a6f 100644 --- a/docs/migrations/h3-url-map.csv +++ b/docs/migrations/h3-url-map.csv @@ -1,20 +1,20 @@ old_url,new_url,status,reason https://securetools.app/,https://securetools.app/,no_redirect,The apex root becomes the Hub and must not redirect -https://securetools.app/about/,https://tools.securetools.app/about/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/privacy/,https://tools.securetools.app/privacy/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/,https://tools.securetools.app/tools/pdf/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/images-to-pdf/,https://tools.securetools.app/tools/pdf/images-to-pdf/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/merge/,https://tools.securetools.app/tools/pdf/merge/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/split/,https://tools.securetools.app/tools/pdf/split/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/organize/,https://tools.securetools.app/tools/pdf/organize/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/to-images/,https://tools.securetools.app/tools/pdf/to-images/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/pdf/metadata/,https://tools.securetools.app/tools/pdf/metadata/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image/,https://tools.securetools.app/tools/image/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image/converter/,https://tools.securetools.app/tools/image/converter/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image/resize/,https://tools.securetools.app/tools/image/resize/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image/compress/,https://tools.securetools.app/tools/image/compress/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image/metadata/,https://tools.securetools.app/tools/image/metadata/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/privacy/,https://tools.securetools.app/tools/privacy/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/scan/,https://tools.securetools.app/tools/scan/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/media/,https://tools.securetools.app/tools/media/,301,Preserve the existing Web Utilities path on the tools host -https://securetools.app/tools/image-to-pdf/,https://tools.securetools.app/tools/image-to-pdf/,301,Preserve the existing noindex legacy interstitial without combining path cleanup +https://securetools.app/about/,https://tools.securetools.app/about/,301,Historical apex URL; direct canonical tools-host target +https://securetools.app/privacy/,https://tools.securetools.app/privacy/,301,Historical apex URL; direct canonical tools-host target +https://securetools.app/tools/pdf/,https://tools.securetools.app/pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/images-to-pdf/,https://tools.securetools.app/pdf/images-to-pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/merge/,https://tools.securetools.app/pdf/merge/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/split/,https://tools.securetools.app/pdf/split/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/organize/,https://tools.securetools.app/pdf/organize/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/to-images/,https://tools.securetools.app/pdf/to-images/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/pdf/metadata/,https://tools.securetools.app/pdf/metadata/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/image/,https://tools.securetools.app/image/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/image/converter/,https://tools.securetools.app/image/converter/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/image/resize/,https://tools.securetools.app/image/resize/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/image/compress/,https://tools.securetools.app/image/compress/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/image/metadata/,https://tools.securetools.app/image/metadata/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/privacy/,https://tools.securetools.app/privacy/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support +https://securetools.app/tools/scan/,https://tools.securetools.app/scan/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support; unavailable category remains unpublished +https://securetools.app/tools/media/,https://tools.securetools.app/media/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support; unavailable category remains unpublished +https://securetools.app/tools/image-to-pdf/,https://tools.securetools.app/pdf/images-to-pdf/,301,Historical apex URL; direct v2.2 canonical target; tools-host legacy URL retains 308 support diff --git a/docs/migrations/h3.5-cutover-runbook.md b/docs/migrations/h3.5-cutover-runbook.md index d538334..891ed99 100644 --- a/docs/migrations/h3.5-cutover-runbook.md +++ b/docs/migrations/h3.5-cutover-runbook.md @@ -1,5 +1,9 @@ # H3.5 coordinated cutover runbook +> Historical H3 preparation record. The apex now serves the Hub and Web Utilities uses +> root-level canonical routes. The old same-path destination contract below is superseded +> by [the verified v2.2 migration](./v2.2-tool-links.md); do not execute this historical runbook. + Status: prepared by H3.4B; do not execute from the preparation pull request. This runbook coordinates the final architecture: diff --git a/docs/migrations/v2.2-tool-links.md b/docs/migrations/v2.2-tool-links.md new file mode 100644 index 0000000..5db5689 --- /dev/null +++ b/docs/migrations/v2.2-tool-links.md @@ -0,0 +1,68 @@ +# Verified v2.2 Hub tool URL migration + +Base: SecureToolsProject/hub main c99f52fcadfbb4c701238b8030d924c9e4496698. +Web Utilities production main: 4b07f2962e524f4cfa5736de35e0f31ad52aaa15. +The live tools sitemap and route manifest are the canonical reference; all 19 destinations +returned HTTP 200 with zero redirect hops before editing. + +## Audit before editing + +- public/_redirects: 16 legacy tools-host destinations among 18 exact redirects. +- docs/migrations/h3-url-map.csv: the same 16 stale destination URLs; preserve historical sources. +- scripts/validate-h3-url-map.py: enforced obsolete same-path destinations. +- docs/deployment.md and docs/seo.md: repeated the obsolete/currently inaccurate contract. +- docs/migrations/h3-migration-contract.md and h3.5-cutover-runbook.md: historical same-path + instructions, now clearly marked superseded; preserve historical route tables. +- public/products/web-utilities/index.html: two canonical root entry links, no individual + tool discovery; old cutover wording. Add available tool links using its existing list design. +- README.md: stale pre-production status. +- Other source, public assets, navigation, metadata, sitemap and robots: no stale published + tools-host destinations. Hub has English-only static content, no locale/theme controls. + +## Exact apex-source to tools-host canonical mapping + +| Historical apex source | Canonical tools-host destination | +| --- | --- | +| /about/ | /about/ | +| /privacy/ | /privacy/ | +| /tools/pdf/ | /pdf/ | +| /tools/pdf/images-to-pdf/ | /pdf/images-to-pdf/ | +| /tools/pdf/merge/ | /pdf/merge/ | +| /tools/pdf/split/ | /pdf/split/ | +| /tools/pdf/organize/ | /pdf/organize/ | +| /tools/pdf/to-images/ | /pdf/to-images/ | +| /tools/pdf/metadata/ | /pdf/metadata/ | +| /tools/image/ | /image/ | +| /tools/image/converter/ | /image/converter/ | +| /tools/image/resize/ | /image/resize/ | +| /tools/image/compress/ | /image/compress/ | +| /tools/image/metadata/ | /image/metadata/ | +| /tools/privacy/ | /privacy/ | +| /tools/scan/ | /scan/ | +| /tools/media/ | /media/ | +| /tools/image-to-pdf/ | /pdf/images-to-pdf/ | + +The root remains the Hub with no redirect. Tools-host `/tools/*` URLs remain supported +historically through 308 redirects, but are never Hub destinations. The image-to-PDF alias +maps directly to `/pdf/images-to-pdf/`. PDF to Text is new since the original H3 inventory: +link directly to `/pdf/to-text/`, with Searchable PDF integrated there; do not invent a legacy +redirect or a separate Searchable PDF route. Scan/media legacy redirects preserve historical +routing only; those unavailable tools remain absent from discovery. No new tool is activated. + +## Validation + +The Hub has no package manager, install dependencies, compilation, or separate build step. +`public/` is the unchanged static deployment output format. Run: + +```text +python scripts/validate-h3-url-map.py +python scripts/validate-h3-hub-cutover.py +python -m unittest discover -s scripts -p "test_*.py" +git diff --check +``` + +The existing URL validator now checks canonical destinations, exact historical sources, +discovery links, unpublished tools and redirect-map consistency. SEO validation retains +10 Hub-only canonical pages, sitemap/robots and Pages-alias isolation. Regression tests +exercise stale destinations, aliases, missing PDF OCR discovery and unavailable tool links. +DNS, Search Console, Web Utilities code, tags and releases are outside this change. diff --git a/docs/seo.md b/docs/seo.md index 810d28e..eabf7e7 100644 --- a/docs/seo.md +++ b/docs/seo.md @@ -1,7 +1,7 @@ # Hub search metadata -Status: H3.4B preparation only. The pull request must remain unmerged until the coordinated -H3.5 cutover. +Status: production Hub. The v2.2 link migration updates tool destinations without changing +Hub canonical metadata, sitemap, robots, or indexing policy. ## Final canonical identity @@ -29,27 +29,25 @@ https://secure-tools-hub-53i.pages.dev/* https://:version.secure-tools-hub-53i.pages.dev/* ``` -The future `securetools.app` custom domain does not match those patterns and remains +The production `securetools.app` custom domain does not match those patterns and remains indexable. No Worker or Pages Function is required. ## Legacy path ownership `public/_redirects` contains exactly the 18 explicit 301 mappings in -`docs/migrations/h3-url-map.csv`. Every destination is the same path on -`https://tools.securetools.app`. The Hub root and all Hub routes are excluded; no wildcard +`docs/migrations/h3-url-map.csv`. Every destination is the root-level canonical path on +`https://tools.securetools.app`, including the historical image-to-PDF alias. The Hub root and all Hub routes are excluded; no wildcard can swallow future Hub content. -These redirects become reachable on the apex only after H3.5 attaches the custom domain to -the Hub Pages project. The H3.4B feature branch does not deploy or activate them. +The apex redirects go directly to canonical tools URLs. Historical `/tools/*` sources are +retained; destination URLs no longer rely on the tools host's legacy 308 redirects. ## Validation and search activation `scripts/validate-h3-hub-cutover.py` checks route metadata, social image dimensions, sitemap, robots, and Pages-alias isolation. `scripts/validate-h3-url-map.py` compares the redirect artifact directly with the H3.1 inventory and rejects duplicates, wildcards, wrong -hosts, changed paths, non-301 status, root redirects, and Hub-route collisions. +hosts, incorrect canonical targets, non-301 status, root redirects, and Hub-route collisions. -Search Console remains unchanged during preparation. After H3.5 HTTP, TLS, canonical, and -redirect validation, submit the Hub sitemap to the root property and monitor Web Utilities -through the tools URL-prefix property. Do not use Change of Address for this partial -migration. +Search Console and DNS remain unchanged by the v2.2 link migration. Historical activation +instructions remain in the archived H3.5 runbook. diff --git a/public/_redirects b/public/_redirects index f7d2f37..22a58ad 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,18 +1,18 @@ /about/ https://tools.securetools.app/about/ 301 /privacy/ https://tools.securetools.app/privacy/ 301 -/tools/pdf/ https://tools.securetools.app/tools/pdf/ 301 -/tools/pdf/images-to-pdf/ https://tools.securetools.app/tools/pdf/images-to-pdf/ 301 -/tools/pdf/merge/ https://tools.securetools.app/tools/pdf/merge/ 301 -/tools/pdf/split/ https://tools.securetools.app/tools/pdf/split/ 301 -/tools/pdf/organize/ https://tools.securetools.app/tools/pdf/organize/ 301 -/tools/pdf/to-images/ https://tools.securetools.app/tools/pdf/to-images/ 301 -/tools/pdf/metadata/ https://tools.securetools.app/tools/pdf/metadata/ 301 -/tools/image/ https://tools.securetools.app/tools/image/ 301 -/tools/image/converter/ https://tools.securetools.app/tools/image/converter/ 301 -/tools/image/resize/ https://tools.securetools.app/tools/image/resize/ 301 -/tools/image/compress/ https://tools.securetools.app/tools/image/compress/ 301 -/tools/image/metadata/ https://tools.securetools.app/tools/image/metadata/ 301 -/tools/privacy/ https://tools.securetools.app/tools/privacy/ 301 -/tools/scan/ https://tools.securetools.app/tools/scan/ 301 -/tools/media/ https://tools.securetools.app/tools/media/ 301 -/tools/image-to-pdf/ https://tools.securetools.app/tools/image-to-pdf/ 301 +/tools/pdf/ https://tools.securetools.app/pdf/ 301 +/tools/pdf/images-to-pdf/ https://tools.securetools.app/pdf/images-to-pdf/ 301 +/tools/pdf/merge/ https://tools.securetools.app/pdf/merge/ 301 +/tools/pdf/split/ https://tools.securetools.app/pdf/split/ 301 +/tools/pdf/organize/ https://tools.securetools.app/pdf/organize/ 301 +/tools/pdf/to-images/ https://tools.securetools.app/pdf/to-images/ 301 +/tools/pdf/metadata/ https://tools.securetools.app/pdf/metadata/ 301 +/tools/image/ https://tools.securetools.app/image/ 301 +/tools/image/converter/ https://tools.securetools.app/image/converter/ 301 +/tools/image/resize/ https://tools.securetools.app/image/resize/ 301 +/tools/image/compress/ https://tools.securetools.app/image/compress/ 301 +/tools/image/metadata/ https://tools.securetools.app/image/metadata/ 301 +/tools/privacy/ https://tools.securetools.app/privacy/ 301 +/tools/scan/ https://tools.securetools.app/scan/ 301 +/tools/media/ https://tools.securetools.app/media/ 301 +/tools/image-to-pdf/ https://tools.securetools.app/pdf/images-to-pdf/ 301 diff --git a/public/products/web-utilities/index.html b/public/products/web-utilities/index.html index 440f643..792c60d 100644 --- a/public/products/web-utilities/index.html +++ b/public/products/web-utilities/index.html @@ -62,7 +62,7 @@

Secure Tools Web Utilities

Secure Tools ecosystem.

- Open Web Utilities + Open Web Utilities View source
@@ -138,11 +138,30 @@

Website delivery and file processing are different

Entry point and migration boundary

- Web application: tools.securetools.app - hosts the parallel Web Utilities deployment and becomes the product's canonical - public endpoint during the coordinated H3.5 cutover. + Web application: tools.securetools.app + is the canonical production endpoint. Tools use root-level paths; legacy + /tools/ URLs remain supported through redirects.

+
+

Available tools

+ +

Searchable PDF is part of PDF to Text. Document Scanner remains unavailable.

+

Source and technical documentation