---
title: "Path routing and redirects - Deplo"
description: "A domain is a hostname plus an optional path, so one app can serve example.com/api while another serves example.com/. Path routers always win over whole-host ones, longest prefix first."
url: "https://web-isometric-9487cf1e.deplo.site/features/path-routing-and-redirects"
image: "https://web-isometric-9487cf1e.deplo.site/api/media/file/path-routing-and-redirects.webp"
updated: "2026-09-06"
---

# Path routing and redirects

A domain is a hostname plus an optional path, so one app can serve example.com/api while another serves example.com/. Path routers always win over whole-host ones, longest prefix first.

![Path routing and redirects](https://web-isometric-9487cf1e.deplo.site/api/media/file/path-routing-and-redirects.webp)

## Also

Per-domain port override, a www and non-www pairing with a redirect, and a redirect from one hostname to another, all on the domain row.

[Learn more](https://web-isometric-9487cf1e.deplo.site/docs/guides/networking/domains-and-https#path-routing)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://web-isometric-9487cf1e.deplo.site/#organization",
      "name": "Deplo",
      "url": "https://web-isometric-9487cf1e.deplo.site",
      "description": "Ridicolously good alternative to cloud providers.",
      "logo": {
        "@type": "ImageObject",
        "url": "https://web-isometric-9487cf1e.deplo.site/api/media/file/og_logo.png",
        "width": 824,
        "height": 824
      },
      "sameAs": [
        "https://ds.deplo.build",
        "https://x.com/deplocloud",
        "https://www.instagram.com/deplocloud",
        "https://github.com/DeploCloud/deplo"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://web-isometric-9487cf1e.deplo.site/#website",
      "name": "Deplo",
      "url": "https://web-isometric-9487cf1e.deplo.site",
      "description": "Ridicolously good alternative to cloud providers.",
      "publisher": {
        "@id": "https://web-isometric-9487cf1e.deplo.site/#organization"
      }
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Features",
      "item": "https://web-isometric-9487cf1e.deplo.site/features"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Path routing and redirects",
      "item": "https://web-isometric-9487cf1e.deplo.site/features/path-routing-and-redirects"
    }
  ]
}
```
