getmeli / meli

Platform for deploying static sites and frontend applications easily. Automatic SSL, deploy previews, reverse proxy, and more.
Other
2.4k stars 97 forks source link

Add domain redirection #255

Open tms0 opened 2 years ago

tms0 commented 2 years ago

Hi,

I miss a domain redirection feature, to handle the redirection of www subdomain to non www domain (for example) .

I think it could be done easily by adding a "Redirect to domain" option in the UI, when we add a domain. Then in caddy, it generates a new route with a static_response handler to redirect to the specified domain.

What do you think about it ?