Sift together flour, baking powder, and salt.
Beat butter in a large bowl with an electric mixer until light and fluffy, then gradually beat in granulated sugar.
Add one egg at a time, beating well after each addition. Beat in vanilla and rum.
Add half of flour mixture and beat on low speed just until blended.
Beat in pineapple juice, then add remaining flour mixture, beating just until blended. It is totally fine if the batter looks curdled.
Working quickly, distribute drained pineapple in the cake pan in even layer, gently pressing the fruit into caramel.
Spoon batter over pineapple topping and spread evenly.
Bake cake in middle of oven until golden and a tester comes out clean, for about 35 to 45 minutes.
Let cake stand for five minutes before inverting it on a plate/cake board. Keep the plate/cake board and the pan pressed together while inverting.
Serve cake just warm or at room temperature with dollop of whipped cream (with lime zest, if you fancy lime).