Created
January 26, 2013 00:10
-
-
Save sethladd/4639048 to your computer and use it in GitHub Desktop.
Static file serving with App Engine. This handles /directoryname => /directoryname/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works unless you have a handler than captures requests in order to redirect them.