Plan & choose · Publishing architecture guide

Add a directory to an existing website without breaking the site

A practical comparison of website-path, subdomain, separate-domain, embed, CMS, and custom routes for an established site's directory.

ONE SITE / SCOPED ROUTE
01Origin02/directory03Listings
Direct answer

The practical answer first

To add a directory to an existing website, choose where requests should be served: a scoped path on the main hostname, a subdomain, a separate domain, an embed, or a native CMS or custom build. Protect existing routes, canonical ownership, navigation, analytics, security, and rollback before changing DNS or edge routing.

Who this is for

For marketing, content, and technical teams that already have a website and want the directory to feel connected without replacing the current stack.

When to use it

Use this guide before selecting a builder or implementation partner because publishing architecture changes SEO ownership, deployment risk, branding, and ongoing support.

01

Choose the audience-facing location

A path such as example.com/resources keeps the directory under the primary hostname and navigation context. A subdomain isolates deployment while retaining brand proximity. A separate domain offers autonomy but creates a new destination. An iframe preserves the host page URL but can weaken navigation, accessibility, and content ownership.

  • Choose based on user continuity and technical control.
  • Confirm the platform supports the selected mode natively.
  • Avoid calling an iframe equivalent to native path publishing.
02

Map routing and ownership boundaries

Document which service answers the root directory, category, search, listing, submission, robots, sitemap, asset, and error paths. A scoped edge route must intercept only the chosen prefix and pass every unrelated request to the existing origin. Define redirect and trailing-slash behavior before release.

  • Inventory current and reserved paths first.
  • Use a staging hostname or narrow test route.
  • Prepare an immediate rollback for DNS or edge changes.
03

Preserve canonical and visible integration

Public pages should emit canonical URLs on the intended hostname, carry route-specific metadata and schema, and be linked from the site's real header, content, or footer. Match navigation and brand cues without hiding the directory's ownership or replacing the original site's consent and analytics behavior.

  • Inspect raw HTML, not only the browser DOM.
  • Keep schema URLs absolute and aligned with visible content.
  • Add contextual links from established pages and the sitemap.
04

Test the full failure surface

Verify existing routes, directory pages, unknown slugs, assets, forms, cookies, headers, mobile behavior, analytics, and sitemaps. Test the directory service unavailable, a removed listing, and an invalid custom route. A safe integration preserves true 404s and never leaks a private application shell publicly.

  • Crawl both inside and outside the scoped path.
  • Confirm customer and platform host isolation.
  • Document support ownership for each boundary.
decision table

Publishing option decision table

Choose the option whose control model matches your site. Record the owner, benefits, risks, and rollback for the selected row.

  1. 01
    Main-site path

    Best continuity when scoped routing is available; requires careful origin boundaries, canonical URLs, and rollback.

  2. 02
    Subdomain

    Cleaner technical isolation with visible brand connection; requires navigation, analytics, and SEO integration work.

  3. 03
    Separate domain

    Independent deployment and identity, but visitors and search engines encounter a distinct destination and authority base.

  4. 04
    Embed

    Fast visual placement in some stacks, but validate accessibility, deep links, initial content, resizing, and canonical ownership.

  5. 05
    Native build

    Maximum stack consistency and responsibility; estimate directory data, search, workflow, rendering, and long-term maintenance.

FAQ

Frequently asked questions

Is a subfolder always better for SEO than a subdomain?

No universal rule guarantees performance. Choose the architecture that delivers canonical, crawlable, useful pages and can be maintained reliably; consider brand and operational continuity alongside search concerns.

Will a scoped path take over the rest of the website?

A correctly configured scoped route should answer only the selected prefix and leave every other request with the existing origin. Test route precedence and rollback before enabling it broadly.

Can Directoryz publish on an existing website path?

Yes. Paid plans support a scoped Cloudflare route through OAuth or a generated Worker, as well as a custom hostname. The rest of the existing website continues using its origin.

Keep the current website intact

Publish the directory where the audience already is

Build the collection first, then connect a custom hostname or a scoped existing-site path when the routes, content, and operating workflow are ready.

Start the directory free