Bah, mod_rewrite is for sissies! Parse the url in your handler code! SetHandler mod_python PythonHandler DoStuff Any request starting with /dostuff gets passed to DoStuff handler and you can parse the url pieces in the handler itself: from mod_python import apache def handler(req): req.content_type = 'text/plain' print >> req, 'uri = %s' % req.uri print >> req, 'filename = %s' % req.filename print >> req, 'path_info…
require 'rubygems'
require 'sinatra'
get '/:name' do
"Your name is #{param[:name]}"
end