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
Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments How I Sourced 60% of Customers From Linkedin, Organically 12 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments