How to remove .html extension to static website in google cloud bucket

Viewed 465

Is there any way to remove the .htlm extension from a static website located in a google cloud storage bucket? I tried using .htaccess but it didn't work.

1 Answers

It is not possible, but you can use App engine or Firebase hosting to serve an static HTML website and hide HTML extension.

For the App Engine approach you can manually add URLs on the app.yaml for example

 url: /contact
  static_files: www/contact.html
  upload: www/contact.html
Related