Steve,

Without digging too much in your particular issue, note that
RewriteCond will only match the query string if you use
%{QUERY_STRING}; You can check the following guide for examples:

http://wiki.apache.org/httpd/RewriteQueryString

Frank

On 7/10/08, Foster, Stephen (ASPIRE) <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
>
>
> I have implemented a re-write rule that captures the incoming requests,
> checks for a cookie and then directs the user to another system to
> authenticate and get a cookie before being allowed to access pages under the
> webserver. E.g:
>
>
>
> RewriteCond %{HTTP_HOST}   !=""
>
> RewriteCond %{REQUEST_URI}  !=/server-status
>
> RewriteCond %{REQUEST_URI}  !=/server-status?auto
>
> RewriteCond %{REQUEST_URI}  !=/heartbeat/heartbeat.htm
>
> RewriteCond %{HTTP_COOKIE} !.*iiswlssignonuser*
>
> RewriteRule .*$
> http://www.steve.co.uk/Identification/WLSLogon.asp\?URL=http://%{HTTP_HOST}%{REQUEST_URI}&path=%{REQUEST_URI}&domain=.steve.co.uk&name=mwar
>
> e [L]
>
>
>
> Functionaly this works perfectly but in the access logs I am getting the
> Query string of the re-direct URL being shown against the initial request.
> E.g
>
>  I am accessing
> http://internal.steve.co.uk/TestWebApp/index.html
>
>
>
> 2008-07-10 10:53:02 10.101.X.X internal.steve.co.uk GET
> /TestWebApp/index.html HTTP/1.1 302 367 2025
> ?URL=http://internal.steve.co.uk/TestWebApp/index.html&path=/TestWebApp/index.html&domain=.steve.co.uk&name=mware
> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1) - -
>
> 2008-07-10 10:53:05 10.101.X.X internal.steve.co.uk GET
> /TestWebApp/index.html HTTP/1.1 200 396 60460  Mozilla/4.0 (compatible; MSIE
> 6.0; Windows NT 5.1; SV1; InfoPath.1) - -
>
>
>
> Any thoughts?? Like I say its working fine, just logging wrongly.
>
>
>
> Cheers
>
>
>
> Steve
>
> Capgemini is a trading name used by the Capgemini Group of companies which
> includes Capgemini UK plc, a company registered in England and Wales (number
> 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21
> 6DB.
>
> This message contains information that may be privileged or confidential and
> is the property of the Capgemini Group. It is intended only for the person
> to whom it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute, or use
> this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.


-- 
Francois Gingras
(i): http://ccds.ca
(p): (514) 243-8233
(f): (514) 731-5834

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to