---
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://deplo.build/features/path-routing-and-redirects"
image: "https://deplo.build/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://deplo.build/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://deplo.build/docs/guides/networking/domains-and-https#path-routing)

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://deplo.build/#organization",
      "name": "Deplo",
      "url": "https://deplo.build",
      "description": "Deploy apps from Git, Docker images or Compose on your own servers with Deplo. Open source, automatic HTTPS, backups and no per-seat fees.",
      "logo": {
        "@type": "ImageObject",
        "url": "https://deplo.build/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://deplo.build/#website",
      "name": "Deplo",
      "url": "https://deplo.build",
      "description": "Deploy apps from Git, Docker images or Compose on your own servers with Deplo. Open source, automatic HTTPS, backups and no per-seat fees.",
      "publisher": {
        "@id": "https://deplo.build/#organization"
      }
    }
  ]
}
```

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