Sign in using Google or Yahoo! id.  

Using Servlet Path Info to test Apache mod_rewrite

 Comments Share:   Twitter   Reddit   HackerNews   Facebook 

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 07:52 PM by Subhash Chandran
wiztools apache servlet
blog comments powered by Disqus