Style

 Search

 

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-52
Q. How do I control the default web page for my domain or subdomain?

A.

All you need to do is create an empty text file called .htaccess in the folder containing your desired default web page. Then, you have to add the following line to the .htaccess file:

DirectoryIndex something.xyz

where something.xyz is the file name of your desired default web page.

This will be the web page that loads up by default when someone accesses that folder with their web browser.
Each folder (including the /public_html folder) can have its own .htaccess file. Since each subdomain has its own folder, this means that the default web page for your domain and each of your subdomains can be easily specified.


This page has been viewed 1301 times

Other questions in this category Other questions in this category
1. Finding out the PHP configuration on the server (viewed 3886 times)
2. I cannot send/receive email. What's wrong? (viewed 3868 times)
3. Anonymous FTP (viewed 3756 times)
4. What is FTP? (viewed 3651 times)
5. Adding a Parked Domain (viewed 3560 times)
6. What is cPanel? (viewed 3540 times)
7. Where can I find cPanel Manuals/Documentation? (viewed 3474 times)
8. Publishing Your Web Files with FrontPage (viewed 3467 times)
9. If I use FrontPage, should I FTP my files? (viewed 3442 times)
10. Service Port Numbers (viewed 2116 times)

Return to Search