El sáb, 07-03-2009 a las 13:25 +0100, Tom Peach escribió:
> I am looking to do a 301 "moved permanently" in Cherokee so that
> anybody going to mydomain.com is redirected to www.mydomain.com.

Have a look at the docs. At [1] you will find an cookbook for that.

[1] http://www.cherokee-project.com/doc/cookbook_redirs.html

In short, two virtual hosts: one for mydomain.com and one for
www.mydomain.com

In mydomain.com's virtual host:

- Delete all rules but Default
- Set default rule to _external_ redirect from "^(.*)$" to
"http://www.mydomain.com$1"; (or "^/(.*)$ to
"http://www.mydomain.com/$1";).

Best regards,

-- 
Alberto Caso Palomino      | Adaptia
[email protected]    | http://www.adaptia.es


_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to