Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [NeedScripts.Com] change search url result

Quote Reply
Re: [NeedScripts.Com] change search url result In reply to
Quote:
Thanks for the great post, Man.. you don't quit to surprise :)

Angelic

Quote:
Can you tell me how to fix/update the space with (-) in
http://www.gadgets-shopping.com/search/carbon%20brushes so it would look like
http://www.gadgets-shopping.com/search/carbon-brushes

Unfortunatly you can't (at least not without some quite big hacking).

Basically, due to the way that the mod_rewrite simply "passes" the query along to search.cgi ... there is nowhere that can replace - with " " (AFAIK).

If I was to do this on my site... I would modify the global that is used to show the SearchLogger top results, so that it does;

$query =~ s| |-|gi;

.. but, like I said ... the - holds value in a search, thus if you called;

http://www.gadgets-shopping.com/search/carbon-brushes

...woudl translate to;

http://www.gadgets-shopping.com/cgi-bin/search.cgi?query=carbon-brushes

(i.e with the - still in it).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread change search url result nir 5066 Oct 6, 2004, 7:23 AM
Thread Re: [nir] change search url result
Andy 4995 Oct 6, 2004, 9:01 AM
Thread Re: [Andy] change search url result
VishalT 4923 Oct 6, 2004, 11:31 AM
Thread Re: [NeedScripts.Com] change search url result
Andy 4897 Oct 7, 2004, 12:30 AM
Thread Re: [Andy] change search url result
nir 4885 Oct 8, 2004, 3:13 AM
Thread Re: [nir] change search url result
Andy 4906 Oct 8, 2004, 3:23 AM
Thread Re: [Andy] change search url result
nir 4883 Oct 8, 2004, 3:47 AM
Thread Re: [nir] change search url result
Andy 4898 Oct 8, 2004, 3:50 AM
Thread Re: [Andy] change search url result
nir 4871 Oct 8, 2004, 5:26 AM
Thread Re: [nir] change search url result
Andy 4863 Oct 8, 2004, 5:57 AM
Thread Re: [Andy] change search url result
nir 4880 Oct 8, 2004, 7:17 AM
Thread Re: [nir] change search url result
Andy 4839 Oct 8, 2004, 7:32 AM
Thread Re: [Andy] change search url result
nir 4838 Oct 8, 2004, 8:13 AM
Thread Re: [nir] change search url result
Andy 4827 Oct 8, 2004, 8:59 AM
Thread Re: [Andy] change search url result
nir 4833 Oct 8, 2004, 9:09 AM
Post Re: [nir] change search url result
Andy 4841 Oct 8, 2004, 9:19 AM