I am using Google Cloud to set up a simple site but having a lot of issues with the app.yaml file.
All I need for now is: - Have the site always serve HTTPS - Have all non-www redirect to www - Have index.html be served at the root
I had a configuration that previously worked, then i tried tweaking it, but when i went to reset it... it no longer works. Only the homepage works and every link/url returns the homepage. This is the setup i had:
api_version: 1
threadsafe: true
handlers:
- url: /$
secure: always
redirect_http_response_code: 301
static_files: www/index.html
upload: www/index.html
- url: /(.*)
static_files: www/\1
upload: www/(.*)
Any suggestions appreciated!