Report this

What is the reason for this report?

Auto redirection vhost2 to vhost1

Posted on September 22, 2024

Im trying to implement a permanent redirection from one virtual host to the second vhost running on the same droplet and Im struggling to get this to work. Im using apache2 and 2 vhosts are setup on the same droplet as per https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04 and both with ssl and resolve on the internet with https://newdomainname and https://olddomainname Ive tried unsuccessfully with mod_rewrite for redirection but cant get my head around how it works It would seem a relatively simple problem as others seem to have had the problem the other way - but any suggestions gratefully received

The developer cloud

Scale up as you grow โ€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.