How to Change the Default Search URL Slug in WordPress
Do you want to change the default search URL slug in WordPress? By default, WordPress search URLs are not user friendly. In this article, we will show you how to easily change the default search url slug in WordPress and make it more SEO and user friendly.
Why Change Default Search URL Slug in WordPress
WordPress uses SEO friendly URL structure for all pages on your website. Typical SEO friendly WordPress URLs look like this:
http://example.com/some-page/
http://example.com/2018/03/some-article/
http://example.com/category/some-category/
As you can see, these URLs are quite easy to understand for users as well as search engines.
However, WordPress still uses non-friendly URL for search results page. A typical search URL in WordPress looks like this:
http://example.com/?s=search-term
This URL structure doesn’t match the rest of your website URLs. While some WordPress search plugins improve the search results, most don’t do anything about the search URL itself.
What if you can make your search URL look like:
http://example.com/search/your-search-term/
Let’s take a look at how to make the WordPress search page URL slug more SEO friendly.
Video Tutorial