Times read: 460
Read today: 3
Read last: February 8, 2010
SEO: Wordpress Search with Permalink structure
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:
<form action=";/index.php" method="get" onsubmit="location.href='/search/' + encodeURIComponent(this.s.value).replace(/%20/g, '+'); return false;">
This is it, you are done!
People asked me to put up a donate button or something similar, so here it is: if you care to buy me a beer or Red Bull (I drink the Dutch equivalent called Spam Energy), feel free to donate, anything is appreciated!
Most viewed:
Oh, hello (December 2009)Motorola Razr v3i Software and v3i USB DriverWatch Simpsons Episodes Online
h4x3d.com does not host any illegal content. Links/Files referred to are for educational purposes only.

