How to manage URL redirects

This tutorial will cover how to setup URL redirects. A URL redirect allows you to make one URL redirect to another of your choice.

It assumes you have first logged into Virtualmin.

  1. Choose the domain for which you would like to add the URL redirect. You can do that by selecting the domain name from the drop-down box on the top-left.

  2. Click Server Configuration.

  3. Click Website Redirects.

  4. Click Add a new website redirect..

  5. What URL do you want redirected? Enter the path in the Source URL path field. A URL path is something like /</code, <code>/foo, or /foo/bar.

  6. In the Destination field, enter the full URL it should redirect to. That would look something like

  7. Click Create.


just put in the "permanent redirect" option you directoy to redirect:

In from section:

/ for whole domain or

/folder/ for folder under domain

in To: section do address to send to:


thats it. save it and you may need to restart apache.

this will act as a wild card redirect too.