How do I make a .png file the home page?

Avatar
  • Answered
I recently uploaded a .png file to be the home screen for my new website (roguewavemgmt.com) I only want it to be a single page site.
Avatar
Scott
Hello sholloran,

You can do that by adding a file named .htaccess (note the period in front of the name). This is a text file that can have code instructions on how a site should behave.

The line of code you want to enter is:
DirectoryIndex [filename]

Replace [filename] with the name of the png file you want to have as your page.

Note that since this is a simple image, it will display differently in different browsers. For consistency, you may simply want to create an index.html page with nothing but the image, that way you can adjust it to appear the same on all browsers.

Best Regards,
Scott M