Ever wondered how you could transfer any searches from ?s=TERM to /search/TERM , then read below or visit Alex King’s approach.
This is too good to not report on, so for personal archiving reasons, I have put Alex’ Code below:
To your .htaccess file add:
RewriteRule ^search/(.+)?$ /index.php?s=$1 [QSA,L]
In your theme, look out for search.php or similar and change the form field to:
This is it, you are done!
If you enjoyed this post, make sure you subscribe to my RSS feed!
Related posts:
- Changing Permalink structure (removing datestamp) If you used the default permalink structure, you'd have something...
- Show code on wordpress css Hi, one of the people commenting here asked for a...
- Want no border around input hidden field with css? Today I worked on a template for another client and...
- When svn up does not work (Wordpress subversion) Today Wordpress 2.3.3. was released as an urgent security update...
- Do Not Drop Your Web Site Off the Search Engine Cliff If you've been feeling like Tom Cruise climbing up the...
Tagged with: permalinks • search • seo • wordpress




















No comments
Jump to comment form | comments rss [?] | trackback uri [?]