fix redirect - 301 by default