AFAIC all Legacy/Impreza/Forester from 90 to present use the same mounting. The only difference being the plug type. Electrically they are all compatible if you find the matching plug.
Heck, an alternator from a Nissan Sentra will even bolt up and work...