To set up a default web page in cPanel, follow these steps:
1. Log in to cPanel
- Access your hosting account’s cPanel by logging in with the credentials provided by your web hosting provider. The cPanel login URL typically looks like https://yourdomain.com/cpanel or is provided by the hosting service.
2. Access the File Manager
- Once logged in, find the File Manager option under the "Files" section. This is where all your website’s files are stored.
3. Navigate to the Root Directory
- In the File Manager, locate the root directory of your website. For the main domain, this is typically the public_html folder. For add-on domains or subdomains, the folder names may vary.
4. Upload Your Default Web Page
- Ensure that the file you want to set as the default page is named index.html, index.php, or any other server-supported format.
- If you already have the file, click Upload from the File Manager, select the file, and upload it to the public_html folder.
5. Set Up Redirection (Optional)
If you want to redirect to another page by default, you can create a simple HTML or PHP file with a redirection code. For instance, in an index.html file, you can use:
html
Copy code
<meta http-equiv="refresh" content="0; URL='http://example.com/page.html'" />
6. Check Your Website
Once your file is uploaded, visit your domain (e.g., http://yourdomain.com). The default page should now appear. If you upload multiple files, the server will automatically display the index.html or index.php page.
