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

Other questions in this category Other questions in this category
1. Finding out the PHP configuration on the server (viewed 3380 times)
2. I cannot send/receive email. What's wrong? (viewed 3375 times)
3. Anonymous FTP (viewed 3264 times)
4. Adding a Parked Domain (viewed 3161 times)
5. What is FTP? (viewed 3072 times)
6. What is cPanel? (viewed 3049 times)
7. Where can I find cPanel Manuals/Documentation? (viewed 3041 times)
8. If I use FrontPage, should I FTP my files? (viewed 3038 times)
9. Publishing Your Web Files with FrontPage (viewed 2978 times)
10. Service Port Numbers (viewed 1822 times)

Return to Search