How to manage aliases and redirects?

?While the aliases textarea and redirects checkbox are displayed on the Create Site form, it is not obvious how to get there later, when the site already exists.

How to manage aliases and redirects problem
How to manage aliases and redirects solution
omega8cc - Mon, 04/30/2012 - 05:31

How to redirect foo.com to www.foo.com

To be able to redirect foo.com to www.foo.com you need to use www.foo.com as a main domain name for the site created in Aegir and enable standard redirect. It will add foo.com as an alias automatically.

If your site is already created with foo.com, you can’t rename it directly to www.foo.com, however. It is because www.foo.com alias is already “taken” so it is a classic chicken/egg syndrome.

You will need to rename the site to anything.foo.com first and then back to www.foo.com, plus enable redirect.

Now any visit to foo.com will cause 301 redirect to www.foo.com

Note that there is no .htaccess in Aegir and Nginx, so you can’t manage redirects in .htaccess file. You need to use Aegir interface to manage your Nginx web server configuration.

Ask Question

The content of this field is kept private and will not be shown publicly.
+ six = fourteen
Solve this math question and enter the solution with digits. E.g. for "two plus four = ?" enter "6".
Create Account or request a free Test Drive
© 2009-2012 Omega8.cc | 8 Temasek Boulevard, Suntec Tower Three, Level 42, Singapore 038988, Fax: +65 6829 2121 | Twitter
Acceptable Use · Terms of Service · Privacy · News
New York · Singapore