I am trying to deploy our web app in google app engine. I would like to redirect any url ending with / to {url}/index.html e.g. /crm/features/ to be redirect to /crm/features/index.html. My app.yaml structure is specified below
runtime: php55
api_version: 1
#threadsafe: true
handlers:
- url: /
static_files: static/index.html
upload: static/index.html
# Serve php scripts.
- url: /mail/.*
script: static/mail/mailsender_1.php
# index files
- url: /\w+/(\w+-*\w+)+/.*
static_files: static/\w+/(\w+-*\w+)+/index.html
upload: static/\w+/(\w+-*\w+)+/index.html
- url: /(.*)$
static_files: static/\1
upload: static/(.*)\.(js|css|png|jpg|jpeg|map|woff|ico|svg|woff2|ttf)
- url: /.* #everything else after slash ends up here
static_files: static/index.html
upload: static/index.html
I am just struggling from last couple of hours.