httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohan Kumar V.M" <mohankumar...@infosys.com>
Subject RE: [users@httpd] Remove Query String from the URL
Date Wed, 25 Feb 2004 18:00:26 GMT
Hi, 

The requirement is like this
Request will be associated with jsessionid as key and its value after
char ';'
Just like below.
http://localhost/mizuhoapp/html/en/FIAboutThisSite.html;jsessionid=value
The server should not consider anything which is appearing after char
';' For above URL it should serve the
"mizuhoapp/html/en/FIAboutThisSite.html"
(But now server giving 400 bad request error; even after RewriteRule
^([^;]*);(.*)$ $1?$2 )

I hope now it is clear. 

Thanks
Mohan

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca] 
Sent: Wednesday, February 25, 2004 11:08 PM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Remove Query String from the URL


On Wed, 25 Feb 2004, Mohan Kumar V.M wrote:
> but I want it in this way. The following URL should work
> http://localhost/mizuhoapp/html/en/FIAboutThisSite.html
>
<http://localhost/mizuhoapp/html/en/FIAboutThisSite.html?jsessionid=valu
> e1> ;jsessionid=value1
> Observe ';' instead of '?'
>
> I changed the RewriteRule like this
> RewriteRule ^([^;]*);(.*)$ $1;$2
> Still it didn't work. Am I wrong here?

You've lost me.  The whole point of what we were doing was to map a url
with ";" to an internal resource using "?".  That RewriteRule removes
the
";" and then puts it right back again.

You'll need to be more clear about what you want to accomplish.

Joshua.

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message