[wp-hackers] Rewriting search URL

Peak Discharge chmoka at gmail.com
Thu Apr 21 22:30:01 GMT 2005


That changes my url into the form of http://www.unicorns.com/?s=string, 
which is a progress. The aim, however is to change all search urls to 
http://www.unicorns.com/search/string

On 4/22/05, denis at semiologic.com <denis at semiologic.com> wrote: 
> 
> Quoting Peak Discharge <chmoka at gmail.com>:
> 
> > One of the things I love wp for is it's permalinks systems that utilizes
> > mod_rewrite. I have tried tens of blog scripts in the past but wp's is 
> the
> > best one. One thing I have noticed, however, it does not rewrite the 
> search
> > URL. So instead of something neat such as '
> > http://www.unicorns.com/search/unicorn', I see
> > 'http://www.unicorns.com/index.php?s=unicorn&searchbutton=Go%21
> 
> simply change the form's action's to "/" to solve this
> 
> 
> > ' (using the Blix theme). If you ask me it looks completely out of place
> > compared with the complex rewriting system used for every other possible
> > link in the blog. So the question is, it it possible to rewrite the 
> search
> > URL? The rewrite itself is already implemented in .htaccess and the 
> problem
> > is how to redirect all search URLs to search/blah? Firas and me had a 
> nice
> > long conversation in #wordpress today and Firas wrote a small script 
> that
> > redirects search requests to search/blah. However, it only works on 
> index
> > and the solution itself isn't the best option. Any ideas people?
> >
> > --
> > best regards, chmoka
> > mailto:chmoka at gmail.com
> >
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 



-- 
best regards, chmoka
mailto:chmoka at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-hackers/attachments/20050421/cd83aeac/attachment.html


More information about the wp-hackers mailing list