The only general rule is no parking on the sidewalk. Fortunately, some kind soul has created a website for motorbike parking in London which lists all the free parking spaces and all the rules for the various boroughs.