I'm trying to serve a static website using GCP and Google Cloud Storage. I have done everything specified here https://cloud.google.com/storage/docs/hosting-static-website
Say I have the following file structure:
- index.html
- folder
- index.html
- another.html
I enter www.example.com/folder
.
It redirects to www.example.com/folder/index.html
=> index.html is undesired
But if I enter www.example.com/folder/
, it doesn't redirect and serves correctly the index.html page transparently.
How do I prevent the first behavior? Or automatically add a trailing slash?
Thanks!
.../index.html
to.../
– Jossef Harush