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.
Asked
Active
Viewed 729 times
2
-
3Configuration by an `.htaccess` file is an Apache-specific concept. Google Cloud Storage Buckets (to my knowledge) do not serve files using Apache (or any derivation of it thereof). – esqew Jul 31 '20 at 16:01
1 Answers
1
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

Jan Hernandez
- 4,414
- 2
- 12
- 18