Did search the forum and found some things like setting "ForceVirtualHost=true" and changing search.tpl to post. Also found some unresolved issues about this problem, the first one I found is from 2004! (issue 3693)
Seems to me there isn't a structural solution yet.
Is there an intention to solve the problem in the near feature? If so, when would that be?