Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Getting rid of typing /index.html when going to landing page

Hi Everyone, First I apologize for my lame question and if this is the wrong location to ask this question - I promise I tried to find it myself before coming here. I am currently in a coding bootcamp and I have been doing projects on my own to get better. However, I am running into an issue that is honestly stumping me. 

How do I have my landing page (which is named index.html) load without typing www.website.com/index.html. I am trying to have it work like normal sites where you can just type in www.website.com , any help is greatly appreciated!

(Edit) So I learned a little bit about .htaccess - I created that file, put in what I thought was needed and I still have to type in .index/html. 

 

Thank you in advance, 

Joey

0 1 930
1 REPLY 1

Hi Hoey, I set up a static web site using "Host a static website" GCP tutorial.  In cloud storage bucket of your website: Try the Bucket overflow menu- select web configuration.  I created an index file; 01indexproduction.html and defined it as the website index page.  File name is to prevent hackers from guessing the index page name in the bucket.  Read the tutorial -ASSIGN SPECIALTY PAGES.  Hope that helps. pfrankwicz. 

 

Top Labels in this Space
Top Solution Authors