Skip to content

Instantly share code, notes, and snippets.

@sethladd
Created January 26, 2013 00:10
Show Gist options
  • Select an option

  • Save sethladd/4639048 to your computer and use it in GitHub Desktop.

Select an option

Save sethladd/4639048 to your computer and use it in GitHub Desktop.
Static file serving with App Engine. This handles /directoryname => /directoryname/
application: new-project-template
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: (.*/)
static_files: static_content\1index.html
upload: static_content
# Any file with a '.' is served directly
- url: (.*\..*)
static_files: static_content\1
upload: static_content
- url: .*
script: script_to_handle_redirects.py
@sethladd

Copy link
Copy Markdown
Author

This works unless you have a handler than captures requests in order to redirect them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment