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 1171 times

Other questions in this category Other questions in this category
1. I cannot send/receive email. What's wrong? (viewed 3541 times)
2. Finding out the PHP configuration on the server (viewed 3507 times)
3. Anonymous FTP (viewed 3375 times)
4. Adding a Parked Domain (viewed 3272 times)
5. What is FTP? (viewed 3227 times)
6. What is cPanel? (viewed 3174 times)
7. Where can I find cPanel Manuals/Documentation? (viewed 3155 times)
8. If I use FrontPage, should I FTP my files? (viewed 3143 times)
9. Publishing Your Web Files with FrontPage (viewed 3091 times)
10. Service Port Numbers (viewed 1875 times)

Return to Search