httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] Remove Query String from the URL
Date Wed, 25 Feb 2004 15:35:06 GMT

On Wed, 25 Feb 2004, Mohan Kumar V.M wrote:

> Hi All,
>
> QueryString needs to be removed from the URL.
> Ex.
> http://localhost/index.html;jsessionid=A8Ugi8erYBE7M4AjVuuzpXSamzjtFuOal
> ISVr51ixpMxkm1Ih2RX!-1213677132
> For this kind HTML files server response is 404.
> If we send the request like http://localhost/index.html, it will work
> fine.
> Are there any settings to remove the query String?

There is no query string in that URL.  The query string is the part after
the "?".  There is no "?".

The real question is what is generating URLs like that.

But you could deal with them with mod_rewrite if necessary:

RewriteEngine On
RewriteRule ^([^;]*);(.*)$ $1?$2

which converts it to a real query string that apache will deal with
properly.

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


Mime
View raw message