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 16:54:42 GMT
Hi,

Thanks for replying. Really cool solution.
But, after configuring "RewriteEngine On", it is giving forbidden
problem when I try to access the URL.


Forbidden
You don't have permission to access
/mizuhoapp/html/en/FIAboutThisSite.html on this server.
------------------------------------------------------------------------
--------
Apache/2.0.47 (Win32) Server at localhost Port 80



Thanks
Mohan

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca] 
Sent: Wednesday, February 25, 2004 9:05 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:

> 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


---------------------------------------------------------------------
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