6
7 Comments

How to provide a subdomain for every customer with forwarding? You experience with that?

We are exploring a feature for reviewhornet.com where every customer gets a subdomain, like customer1.reviewhornet.com which forwards to another url like say reviewhornet.com?par1=val1&par2=val2 and so on. Was wondering if there is an out of the box solution out there which can help with this?

Is there any service that can help with this? How was your experience when you required such a service?

  1. 2

    With Laravel is pretty easy (but not trivial) ohdearapp published how they do it:
    https://ohdear.app/blog/how-we-used-caddy-and-laravels-subdomain-routing-to-serve-our-status-pages

    Can even setup to allow totally custom domains.

  2. 2

    If you are using nGinx, then check out:

    https://dabase.com/e/04055/

    This will give you some help

  3. 2

    if you manage your own stuff, you can do an http fwd with common http servers like nginx and apache just by config.
    you also don't have to do fwding

    lookup url rewrite for example

  4. 1

    I was the original person who asked this question. After some search I came accross https://www.rebrandly.com/. It seems to have the features we were looking for. Not signed up yet though.

    Just posting here in case it is useful for others.

  5. 1

    Had the same Problem a few days ago! Caddyserver is the solution you're looking for

  6. 1

    You can do something like this:

    1. Create a DNS record to route all requests with subdomains to a specific web server.
    2. From the request, read the subdomain that was used to reach the web server
    3. Trigger redirect (or any other logic) based on that value
Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 47 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 27 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments How I Launched FrontendEase 13 comments