General

How can I change the default page / document?

Updated November 2026 11,751 views 3 min read
General | Updated November 2026

The default page (also called the directory index) is the file that loads when someone visits a directory on your website without specifying a filename. By default, the web server looks for index.html or index.php, but you can change this to any file you want.

01. How to Change the Default Page

Method 1: Rename your file

The simplest approach is to rename your main page to index.html (for static HTML) or index.php (for PHP). The web server looks for these filenames first, so no configuration changes are needed.

Method 2: Use .htaccess

If you want to keep your filename as-is, add a DirectoryIndex directive to the .htaccess file in the directory where your page lives:

DirectoryIndex home.html

You can list multiple filenames in order of priority:

DirectoryIndex home.html index.html index.php default.html

The server tries each file from left to right and serves the first one it finds.

Method 3: Via cPanel

cPanel has an "Indexes" tool under Advanced that lets you configure directory behavior. However, the .htaccess method gives you more control and is the preferred approach.

Tip

This works per-directory. A .htaccess file in public_html sets the default for your main site, while a .htaccess in a subdirectory only affects that subdirectory. For more on .htaccess, see our Complete Guide to .htaccess.

02. Removing the Ultra Web Hosting Default Page

If you still see the Ultra Web Hosting "Under Construction" default page, you need to either delete or replace the index.html file that came with your account. See Removing the Under Construction Default Page for step-by-step instructions.

Need Help?

If you are having trouble getting your site to load the correct page, our support team can check your configuration.

Open a Support Ticket

Frequently Asked Questions

What is the default page or directory index?

It is the file the web server loads when someone visits a directory without naming a file, for example yourdomain.com/. By default the server looks for index.html or index.php. You can change which file is used.

How do I change the default page?

Add a DirectoryIndex line to the .htaccess file in that directory, listing your preferred file first, for example: DirectoryIndex home.html index.php. The server then loads the first one it finds.

Why does my site show a directory listing instead of my page?

There is no recognized index file in that directory, so the server lists the files instead. Add an index.html or index.php, or set a DirectoryIndex in .htaccess pointing to your main file.

How do I stop the Ultra Web Hosting default page from showing?

Upload your own index file (index.html or index.php) to public_html. The server shows its placeholder only when no index file is present; once yours exists, it loads instead.

Quick Recap

  1. Rename your file to index.html or index.php - Simplest approach
  2. Or use DirectoryIndex in .htaccess - DirectoryIndex mypage.html
  3. Multiple fallbacks are supported - List files in priority order
  4. Works per-directory - Each directory can have its own default
  5. Delete the default index.html if you still see the Ultra Web Hosting page

Website configuration basics · Last updated November 2026 · Browse all General articles

Share: X in Reddit f Email
  • 564 Users Found This Useful

Was this answer helpful?

Related Articles

CGI Scripts - History Security and Modern Alternatives

General | Updated November 2026 CGI (Common Gateway Interface) was one of the earliest...

What is a domain?

DNS | Updated March 2026 A domain name is the address people type into their browser to visit...

Why is my account suspended?

General | Updated November 2026 If your website shows a "This Account Has Been Suspended"...

Some visitors in China and Russia cannot reach my website

General | Updated January 2026 If visitors in certain countries (commonly China, Russia, or...

FTP Root Directory and Account Structure

FTP | Updated November 2026 If you're connected via FTP and cannot navigate above your home...



Save 30% on web hosting - Use coupon code Hosting30