Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tvbz's avatar
Level 4

Forge: How to set up an alias redirect domain

Being new to forge and laravel, I have 2 domains pointing to a single app: domain.be and domain.nl. Now I want to catch all traffic on domain.be and redirect it to domain.nl. Both my domains are pointing to the same server IP.

I've tried the alias option in forge and that works. But I don't want alias. The .be domain should not show the .nl domain, but redirect to it. (because that's easier to comply with EU privacy law)

I've tried the redirect in forge but the .be domain doesn't resolve this way.

How to set up an alias redirect? Thanks!

0 likes
1 reply
drewdan's avatar

Depending upon your domain provider, you might be able to setup a permanent redirect. Dynadot certainly offers this as an option. But whichever mechanism you use, you will need to setup a redirect to send it to the correct domain.

Please or to participate in this conversation.