如何使用page.example.com等链接创建网页

I am creating a website in 000webhost. If I purchase a domain ( for example www.example.com ), the index.html page opens when the user types the address in the URL bar. I want a specific page (for example page.html) to open when the user types page.example.com . How do I do that?

You can write a the index.php with the following code:

<?php
  header("Location: page.html");
?>

You can use redirects with a .htaccess file

htacces redirect

Sorry, example.com domain is taken so u can't create sub domain like page.example.com.

suppose if example.com domain is yours, you can able to create a sub domain page.example.com using cpanel.

You registered your domain, signed up for a free 000webhost.com account, activated your account and am now trying to setup a subdomain for your blog like for example blog.yourdomain.com. Setting up the subdomain is a piece of cake really, all you need to do is to login to your 000webhost.com control panel, then click the Subdomains link and enter a name for your subdomain. The 000webhost.com servers will do the rest and create the necessary entires and directory on the server. check Attachment enter image description here