Menu Close

Changing Your Default Page using .htaccess

Changing The Default Page using .htaccess

If you are unable to edit your master configuration files, you can use this directive from .htaccess. Just edit the .htaccess file located in your main HTML directory. If you do not have this file, feel free to create it!

To change the default page, either edit the existingDirectoryIndex line or add the following:

DirectoryIndex index.shtml index.html

This will make index.shtml the default page.

By using a .htaccess file in a subdirectory, you can specify a different default page for that one directory without affecting the rest of your site.

Call or email us


Find us on: Maps4U.com.au

Waynes Web World Logo of True Local

Find us on: True Local

Word of Mouth Logo - www.wordofmouth.com.au

Find us on: Word of Mouth

Copyright © 2021 Wayne’s Web World – All Rights Reserved. Website Created and Maintained by Us!