dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Add support for redirects in the Domain create form (www → non-www)

Open maliknajjar opened this issue 2 months ago • 2 comments

What problem will this feature address?

Right now, Dokploy allows adding multiple domains to an application, but there is no way to configure a redirect between domains, such as forcing:

www.example.com → https://example.com or

example.com → https://www.example.com

This causes several problems:

SEO duplicate content

Split ranking signals across multiple URLs

Redirect checker warnings

Users reaching two separate versions of the same site

Inconsistent canonical URL behavior

Since DNS cannot perform HTTP redirects, the only correct place to configure this is at the application level — but the current Domain UI does not offer it.

This becomes frustrating when setting up production websites on Dokploy and discovering that proper domain canonicalization is not possible without editing Caddy config manually (which Dokploy overwrites).

Describe the solution you'd like

Adding a select UI element to select witch domain you want to direct to or a simple text input

Describe alternatives you've considered

DNS CNAME → Not viable because it does NOT perform HTTP redirects and does not change the URL in the browser. you can obviosly add a traefik rule to the global config file. but its better to have something related to each service container instead you may remove that service and forget to remove that traefik rule from the global config

Additional context

No response

Will you send a PR to implement it?

No

maliknajjar avatar Nov 22 '25 15:11 maliknajjar

The ability to redirect from old-site.com -> new-site.com would also be great.

OmarUsman avatar Nov 27 '25 22:11 OmarUsman

yes it should be flexible where you can specify these easily

maliknajjar avatar Nov 28 '25 16:11 maliknajjar