2012
02.15

Today let’s see an interesting challenge around WordPress search URL.
Interesting, because rewrite rules, as part of regular expression knowledge is kind of a woodoo.
So I’ll prove, that you won’t need pins and a doll to customize WordPress search permalink structure.

There are plenty of ways to modify the search base url, I hope I show you the less painful way.

By default I pretend you are using some fancy permalink structure, unless this article will be totally useless.

If you use permalink structure /search/myterm way works fine, but by default search form won’t end up there.
That’s the first thing that we are going to handle.

Read More >>