According to =?iso-8859-1?q?Erick=20Paperdin?=:
> i have this in my htdig.conf: 
> url_rewrite_rules:    (.*)PHPSESSID=(.*) \\1
> 
> this just rejects all the URLs outright! if i change
> that to the following, which is more correct: 
> url_rewrite_rules:    (.*)\?PHPSESSID=(.*) \\1
> 
> then i get 15 different URLs of the SAME page with
> different PHPSESSIDs! 

Is the PHPSESSID parameter guaranteed to be the first parameter after
the "?", i.e. at the very start of the query string?  If not, then
your modified rule above won't work.  The problem with both of these
rules, though, is that the final ".*" will swallow everything after
the PHPSESSID= part, including all other query string parameters,
which is likely not what you want to do, as PHP pages often make use
of other parameters.

Try something like:

url_rewrite_rules:    (.*)PHPSESSID=([0-9A-Za-z]*) \\1

and if the session ID can include something other than digits or letters,
add these characters too to the list within brackets.  You want to avoid
the list in brackets matching the usual parameter separators, though,
so don't put a "&" or ";" in the list.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba  Winnipeg, MB  R3E 3J7  (Canada)


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to