This tutorial shows how to configure Ubuntu or other Linux to redirect certain URLs or domains to specific web browser, while leaving all others open in the default browser.
Users may prefer to open certain websites in a non-default browser.
Create a simple script to tell which browser to use when clicking an URL.
First, find the executable files of your web browsers.
Create a custom script to tell which browser to use when clicking an URL and create Desktop Entry for that script.
Finally, write the certain URLs to .domains.txt file and set the custom script as default ‘browser’ in Settings.
The steps are written for default GNOME Desktop but work in other desktops.
Install pcregrep tool which is in use in the script.
Undo the changes by deleting the script and .desktop files.