On Fri, 1 Mar 2002, Jessica Biola wrote:

> Date: Fri, 1 Mar 2002 12:12:46 -0800 (PST)
> From: Jessica Biola <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [htdig] url_rewrite_rules help
> 
> My shopping card puts a session ID immediately after
> the ? in the URL.  So for example, I have this
> happening:
> 
> http://shop.com/default.asp?ID=123456&item=10
> http://shop.com/default.asp?ID123457&item=10
> http://shop.com/default.asp?ID=123458&item=10
> http://shop.com/default.asp?ID=123459&item=10
> 
> I'm trying to come up with a url_rewrite_rules setting
> to just get rid of the ID variable so that it can
> eliminate these duplicate URLs.  I've tried:
> 
> url_rewrite_rules: (.*)\\?ID=[^\&]*(\&.*) \\1\2
> 
> I'd like to keep whatever is BEFORE and AFTER the
> "ID=.*" expression.

Perhaps this would do it:
  url_rewrite_rules: (.*)\\?ID=[^\\&]*(\\&.*) \\1\\2
Note duplicate \s        ^^      ^^    ^^     ^^ ^^

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]


_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to