When we make HTML pages, we generally save it with a
.html extension. But most webpages on the internet have extensions like .com or .org, for example,
https://example.com. How do these pages work?
There are several ways to achieve this:
index.htmlinside root folder of your hosting and open your domain ie.
http://example.com, you can see the output from
You can tell your server using
.htaccessto display the desired file when someone opens your domain.