Modify default WordPress search URL

By default WordPress search result page URL is a query parameter – ?s=[search_term]. Not a very “pretty” URL! But we can make it a nice “pretty” url with a little code snippet. Above code will make your search page url from https://careless.dev/?s=[search_term] to https://careless.dev/search/[search_term]. But /search/ is the default slug… Read More »