Creating a new website file is a way of manually adding another page to your website. Sometimes, it can also be one of the solutions provided to fix your website. There are two ways on how to create one:
Via File Manager in cPanel
This process is the easiest and most appropriate if you have access to your web hosting panel (cPanel).
Step 1. Log in to cPanel.
Step 2. Click the File Manager button under the Files category.
Step 3. Open or create the folder where you want to add the new website file. In this article, testwebsite is the sample folder where we add it. If you only host one website on the cPanel, your website files must be in public_html folder.
Step 4. Click the +File button at the top of the page.
Step 5. Enter the file name for the new website file in the box provided.
Step 6. Click the Create New File button.
Step 7. The same page will show the newly created file. Right-click on the file and choose Edit.
Step 8. Click the Edit button on the pop-up.
Step 9. Enter the texts or codes in the empty field.
Step 10. Click the Save Changes button to save the text added on the file.
A Success message will show on the bottom right corner of the page once the changes are successfully saved.
Via Text Editor and FTP
This option is applicable if you have FTP access. This process needs the text editor from your computer. See the steps below on how to create a new website file.
Step 1. Open a text editor from your computer (e.g., Notepad for Windows, TextEdit for Mac).
Step 2. Enter the texts or codes in.
Step 3. Save the document with the website file name.