Skip to main content


Dear Fediverse,

I have a domain, say "example.net" and I want to setup a couple of redirects so that "example.net/awesome" redirects to "foobar.com/something"

I don't want to manage a server or nginx config for this.

I currently use Gandi Web Forwarding but it doesn't support HTTPS.

Any recommendation for something as low maintenance as possible?

#askFedi #webDev

in reply to Sonny

I would use Caddy as it is extremely simple to configure and maintain, but this still requires a server and I suppose this is that you are trying to avoid. :(
in reply to Sonny

I've set up redirects using AWS, specifically an S3 bucket (configured as a static website) behind a Cloudfront distribution. The ongoing cost for that has been very cheap, if not entirely within the AWS free tier.
in reply to Matt Campbell

@matt

Thanks.

Sounds more complicated than I care for, and there is only one Amazon I care about :)

in reply to Sonny

Fair enough, I'll look forward to reading other people's answers.
in reply to Sonny

bonus point for server side analytics

I don't mind paying a monthly fee for this - I just don't want to have to think about it or maintain it

in reply to Sonny

A .htaccess file at any random web hoster? Since you're with Gandi that would be the most convenient, but at $10/month their smallest hosting package is comparatively expensive just for that. Netlify? https://domcloud.co/ ? A bunch of other free-tier hosting options are listed at https://free.wdh.gg/#/?id=paas
in reply to Sonny

AWS Route53… no servers, you will need to transfer domain to Amazon but stats and redirects are serverless 😅
in reply to Sonny

in all honesty and seriousness setting up nginx on a vps may be the least maintenance solution for this. and likely cheapest too.

(which is kinda stupid)

in reply to Sonny

you could use a service like Vercel or Netlify and set up redirect rules, Netlify uses a _redirect file for this and you can set rules in a vercel.json file for (you guessed it) Vercel.

Or if you already have hosting, don’t want to configure a server and don’t need the HTTP header, you can use a simple HTML page with an appropriate meta tag

Again, depends on what your current setup is like but those are my little suggestions :)

in reply to GⒶbriel

@gabz thanks

Thanks

I don't have a setup right now. I prefer doing the redirects server side.

in reply to Sonny

Now, this is hacky but it'll work: use github pages and use an empty HTML page with just JavaScript to redirect
in reply to Sonny

which part do you dislike? Using js? EDIT: I've got a better way, use a meta tag for redirect
This entry was edited (1 month ago)
in reply to Sonny

I see, but you said no server, so you went a server side redirect without a server?
EDIT: oh you want a SaaS thing IG? E.G. Just pay a fee and it'll host it for you?
This entry was edited (1 month ago)
in reply to QuadRadical

@QuadRadical I don't want to manage a server. I'm hoping to find a service that will take care of the server administration for me.
in reply to Sonny

You could use an URL shortener I think. I'm the founder of URLR (https://urlr.me/en).
You just have to add a DNS entry on your domain to shorten links with your own domain and then choose the destination, have analytics, ...
This entry was edited (1 month ago)
in reply to Sonny

if you move DNS to cloudflare you can setup page rules
in reply to Sonny

For a long time I've been meaning to move my website from GitHub pages to Cloudflare pages because they support exactly these things you want, including server-side, privacy-preserving analytics, as they call it. And it's free!

https://developers.cloudflare.com/pages/
https://developers.cloudflare.com/pages/configuration/custom-domains/
https://developers.cloudflare.com/pages/configuration/redirects/
https://developers.cloudflare.com/pages/how-to/web-analytics/

in reply to Sonny

as long as you are not trying to use wildcards on subdomains, Gandi web forwarding should support https...
in reply to Sonny

I’m running hundreds of Linux servers, but I wanted something more convenient than having to maintain another site just for serving and updating redirects. That’s why I’m using https://redirect.pizza/.