1
我想讓網站用戶在請求www.website.com/userProfile(不含.html)時加載userProfile.html。 在文檔中沒有關於這方面的內容。如何訪問html存儲桶中的html文件,而不指向具有html擴展名的文件
我想讓網站用戶在請求www.website.com/userProfile(不含.html)時加載userProfile.html。 在文檔中沒有關於這方面的內容。如何訪問html存儲桶中的html文件,而不指向具有html擴展名的文件
您可以提供沒有.html後綴的HTML內容。儘管設置內容類型很重要。例如,用gsutil:
gsutil -h "Content-Type:text/html" cp /path/users/userProfile \
gs://www.website.com/userProfile