How to remove URL rewriting using tomcat config or
My Application Envrionment is Tomcat + Apache Webserver.
I wish to remove url rewriting (jsessionid ) from the url when the cookie is disabled.
I tried to go through documentation of Tomcat but could not figure out if it is configurable.
Then I tried to remove jsessionid from url using apache mod_rewrite but with no success.
Here are the steps to configure
1. Added two lines in httpd.conf
RewriteLog /etc/httpd/logs/mod_rewrite_log
RewriteLogLevel 1
2. Created a Text file named ".htaccess" with content
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$
RewriteRule ^(/.*);jsessionid=.*$ $1
3. Placed this file in html root as well as root folder of my webapp.
But still no desired result
I do not see any error both in tomcat/httpd.
I do see a an empty mod_rewrite_log file.
When I disable cookie of my browser i see jsession in the url.
I am able to access .htaccess file with http.
It seems that myplacement of .htaccess file is wrong. httpd is not able to read it.
Please help me to to figure out where am i wrong?
Thanks
Mintnovate
|