Reply To: How to rediect domain.com to www.domain.com?

Splash Forums Rewrite Users How to rediect domain.com to www.domain.com? Reply To: How to rediect domain.com to www.domain.com?

#25907

Try:

.addRule()
.when(Domain.matches("www.domain.com").and(Path.captureIn("path")))
.perform(Redirect.to("http://domain.com/{path}"))