redirect after post messages when use hostname

there is a diff:
visit via "localhost" or "127.0.0.1" is different