To do so within Alfred, you’ll need to build a Workflow for the exact cases you want. Use an Open URL Action at the end to define which browser to use. To do so with a third party app, take a look at Choosy, Browserosaurus, or Multibrowser (I haven’t tested any of them).