Solution by Seungjun Lee.
Let R×=R∖{0}. For a multiplicative subgroup G≤R×, define
AG={a∈R:1+ag∈G∪{0} for all g∈G}.
We claim that all solutions are obtained as follows. Choose a transversal T of R×/G, and for each t∈T choose ct∈AG. Define
f(0)=0,f(tg)=gct(t∈T, g∈G).
Then these, and only these, satisfy
f(x(1+f(y)))=f(x)(1+f(y))
for all x,y∈R.
Now, lets prove that this is the only solution. Let f be a solution. Setting x=0 gives f(0)f(y)=0 for every y. If f(0)=0, then f≡0, a contradiction; hence f(0)=0.
Let
G=⟨1+f(y):y∈R, 1+f(y)=0⟩.
For every generator a=1+f(y)=0, the equation gives f(ax)=af(x). Replacing x by a−1x also gives f(a−1x)=a−1f(x). Therefore
f(gx)=gf(x)(g∈G, x∈R).(1)
Choose a transversal T of R×/G, and put ct=f(t). By (1), f(tg)=gct. Also, for every g∈G,
1+gct=1+f(tg)∈G∪{0},
so ct∈AG. Hence every solution has the stated form.
Conversely, suppose f is defined in that form. If y=tg, then f(y)=gct, so m:=1+f(y)∈G∪{0}. If m=0, both sides are 0. If m∈G, then for x=sh with s∈T, h∈G,
f(mx)=f(smh)=mhcs=mf(x).
Thus f(x(1+f(y)))=f(x)(1+f(y)) for all x,y, completing the classification. □