You'd write a servlet filter that matches on the regex, redirecting as needed. A quick search turned up this:
http://code.google.com/p/urlrewritefilter/ I just searched for: servlet filter url rewriting http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=servlet+filter+url+rewriting On Thu, Jul 8, 2010 at 12:12 PM, John V Denley <[email protected]>wrote: > The reason I am asking this is because there seems to be a python > solution for this as documented here: > > http://www.terminally-incoherent.com/blog/2009/05/11/google-appengine-url-rewriting/ > > On Jul 7, 10:36 pm, John V Denley <[email protected]> wrote: > > I have an application where I want to simplify theURLfor the end > > users > > > > so for examplewww.appname.appspot.com/demowould be redirected > towww.appname.appspot.com/?id=demo > > > > currently Im doing this by using a .htaccess file on my hosting > > company website so thatwww.appname.com/demois then redirected to > > user.appname.com/?id=demo and I have the CNAME for the user subdomain > > pointing to ghs.google.com which is managed within my googleapp to > > point back atwww.appname.appspot.com > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
