Understanding www Redirects 0:00When you have your domains configured with Laravel Forge, you probably might want to add redirects so that non-www traffic gets automatically redirected to the www version or the other way around. So, in my case, I added the domain beyond-code.org and I added it on Forge. If I go back to my server, I added it without the www. So what Forge now automatically does for me is that if I go to the site and I add www, it automatically gets redirected to the non-www version. That's because I added the site without w and Forge automatically adds a redirect for the w version. Now, I want to show you that it also works the other way around. So, in order to change the existing domain name, we can go to the site details of the domain, then to the meta tab, and in here you can change the domain name. So, let's change it to www and just so you are aware of this, you need to refresh the SSL certificates. It also mentions it in the description above. Changing Domain and SSL 1:12and in here you can change the domain name. So, let's change it to www and just so you are aware of this, you need to refresh the SSL certificates. It also mentions it in the description above. So, once you change the site domain, you have to recreate the SSL certificate for this specific domain. So, let's update it and now this might take a moment because Forge is now updating the configuration in the background. Okay, now you can see that it got successfully updated because we now see here the new domain name and if I now go to the SSL tab, I'm going to re-add the certificate using Let's Encrypt and let's obtain the certificate. Alright, so the certificate is reactivated and if I now go to my browser and refresh the website, you can see that I automatically got redirected from the non-www version to the w version. So, if I remove it back again, we automatically get redirected to the correct version. So, if you want to add redirects to Redirects Require No Extra Setup 2:19got redirected from the non-www version to the w version. So, if I remove it back again, we automatically get redirected to the correct version. So, if you want to add redirects to either the w version of your website or the non-w version of your website, you really don't need to do anything other than setting up the site with the correct domain name that you want to use.