How to make search URL prettier in WordPress

In this guide, I will should you a simple trick to make your website’s search results page URL much nicer. With WordPress, you can make your posts URLs prettier from within Settings -> Permalinks. Unfortunately there isn’t an option to improve the look of your search results page, and by default looks like this: