comment 0

Simple Redirect with Apache2

It’s obvious Apache2 is no more the first choice for a webserver, depending on the requirments Ngnix and IIS are now much more attractive.

Maybe you’ve already updated to Ngnix or IIS want to redirect from the old website to the new website in case Apache is still a dependency.

The most simple solution to redirect a website domain or url to a new website is this apache virtual host configuration:

<VirtualHost *:80>
  ErrorLog /var/log/apache2/
  CustomLog /var/log/apache2/ combined
  Redirect permanent /

Latest version of this snippet:

Leave a Reply