Hi, The following works for me:
- url: /(.*\.(html|css)) static_files: \1 upload: .*\.(html|css) - url: /dir(.*) static_files: dir/index.html upload: dir/index.html -Marzia On Tue, Sep 23, 2008 at 7:30 PM, SIE <[EMAIL PROTECTED]> wrote: > > Dear Group, > > Suppose that your home directory has a subdirectory dir with two > static files > > index.html > styles.css > > (index.html includes styles.css). You'd like an app.yaml file that > will return > > http://myapp.appspot.com/dir/index.html > > in response to either of > > http://myapp.appspot.com/dir/ > http://myapp.appspot.com/dir > > The obvious code > > handlers: > - url: /(.*\.(html|css)) > static_files: \1 > upload: .*\.(html|css) > > - url: /dir/ > static_files: dir/index.html > upload: dir/index.html > > works for the first URL. However, simply substituting > > /dir/ -> /dir > > in this code doesn't work for the second URL. It then incorrectly > looks for styles.css in the home directory instead of in dir. > > Can anyone suggest app.yaml rules for the two files to be correctly > served for the second URL? > > Many thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---