I recently did the opposite (swapped out some suspension forks for rigid forks) and the change in geometry was small enough to have no real effect on the bike's handling. The relavent measurement is from the crown race of the fork to the drop-outs (where the wheel axle slots in). If the two forks are within 20mm of one another for this dimension, then that should be close enough for a swap to be viable.
On the other hand, going from a 395mm axle-to-crown rigid fork to a 500mm+ long travel suspension fork would definitely ruin the handling of the bike!
@lpretro1's advice about fork steerers is all relevant too.