Hi,

I want to use 301 to redirect the request, but I don't know how to do.
e.g.:
Some one visit my app: http://www.xxxx.com, I want it redirect it to xxx.com
I thinks I should use function redirect, but I don't know how.


Thanks.