Using Servlet Path Info to test Apache mod_rewrite


Developed this small servlet, Servlet Path Info to test Apache mod_rewrite.

Screenshot of the servlet in action:

http://www.flickr.com/photos/subwiz/6690871483/

The corresponding mod_rewrite configuration:

RewriteEngine on
RewriteRule ^/events/?$ http://localhost:8080/servlet-path-info-0.1.0/calendar [NC,P,L]
RewriteRule ^/events/(.+)$ http://localhost:8080/servlet-path-info-0.1.0/eventdetail/-/calendardetail/$1 [NC,P,L]
Posted on January 13, 2012 02:52 PM by Subhash Chandran
apache wiztools servlet