Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2005, 01:01 AM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementing URL Rewriting retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 February 21st, 2008 01:18 PM
URL rewriting with URL forwarding mtabyana BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 0 October 22nd, 2007 08:22 AM
URL Rewriting Amateur BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 August 9th, 2007 01:54 AM
Disable the url rewriting in DotNetNuke 4.0.3 rskshiva General .NET 1 August 16th, 2006 01:17 PM
Discussion: URL Rewriting planoie ASP.NET 1.x and 2.0 Application Design 2 January 25th, 2006 03:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.