Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite - cant' get this one working

Status
Not open for further replies.

youradds

Programmer
Jun 27, 2001
817
0
0
GB
Hi,

I'm trying to get a URL such as:

Code:
[URL unfurl="true"]http://www.site.com/cgi-bin/search.cgi?query=;sb=Sponsored_c;so=DESC;mh=25;Type=x;Options=foo-bar;nh=11[/URL]

...to goto:

Code:
[URL unfurl="true"]http://www.site.com/collections/foo-bar/[/URL]

I'm using this line as a test:

Code:
RewriteCond %{QUERY_STRING} ^query=[&;]sb=Sponsored_c[&;]so=DESC[&;]mh=25[&;]Type=x[&;]Options=foo-bar[&;]nh=([0-9]+) 
RewriteRule search\.cgi /collections/foo-bar/more%1.html [R=301,L]

I can't seem to get it to work though. Anyone got any suggestions? (we need to allow for & and also ; as the param delimiter, thus [&;])

TIA!

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top