Jump to content

[Answered] specifying main website file


nltrade

Recommended Posts

If you have contents in your .HTML file inside of your public_html folder, then you can simply view it as yourdomain.heliohost.us/yourfile.html into the search bar address.

 

If you want, you can also use a “Redirects” feature inside cPanel underneath Domains to point to your html file so that way your users will able to view your contents page instead taking them to the /index page and letting touch your files which you don’t want that! :)

Link to comment
Share on other sites

If you have contents in your .HTML file inside of your public_html folder, then you can simply view it as yourdomain.heliohost.us/yourfile.html into the search bar address.

 

If you want, you can also use a “Redirects” feature inside cPanel underneath Domains to point to your html file so that way your users will able to view your contents page instead taking them to the /index page and letting touch your files which you don’t want that! :)

 

Thanks - will the same work for a .php file? 

Link to comment
Share on other sites

The proper way to do this is with the .htaccess file.

 

Add a line that looks like the below, it's a space-separated list of files to use as the index. The server will try each in order if the one before it is not found:

DirectoryIndex first.html index.htm index.html index.php
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...