How To Change Default Index Page in .htaccess from cPanel?

How To Change Default Index Page in .htaccess from cPanel? [EASY GUIDE]☑️

Today in this tutorial you will learn about how to change your default index page using htaccess in cPanel. So come let’s find out how to do this- When you enter a URL on your web browser, the server looks for the first page of your website, also called index page. Usually, the default first page of a website are index.html, default.html, or index.php.

When you need a custom name for your index file or want to migrate your website from another and the index page has a custom name, you need to change the default index name.

This tutorial will teach you the process to change the default index page by making some changes in the .htaccess file using the cPanel.

Before beginning this tutorial you can also watch this short video tutorial on How To Change Default Index Page in .htaccess from cPanel

Follow the steps to change default index page name in htaccess via cpanel:

Step::1 Login to your cPanel using your username and password

How To Change Default Index Page in .htaccess from cPanel

Step::2 Click on the File Manager icon under FILES section

How To Change Default Index Page in .htaccess from cPanel

Step::3 Find the .htaccess file located in the public_html directory.

How To Change Default Index Page in .htaccess from cPanel

How To Change Default Index Page in .htaccess from cPanel

(If you don’t find .htaccess file then click on Settings from the top right corner to access the Settings menu. Select the Document Root and make sure Show Hidden files(dotfiles) is selected. Click on Save button.) Watch this video to learn how to find hidden (DOT) Files in cPanel-

https://bit.ly/33G17LK

Step::4 Right-click the .htaccess file and Click on Edit.

How To Change Default Index Page in .htaccess from cPanel

It will show up the Edit pop up. Click on Edit button.

How To Change Default Index Page in .htaccess from cPanel

Step::5 Add the following line of code in your .htaccess file to configure your index page.

#Custom default index page 
DirectoryIndex welcome.html

Step::6 You can also add more than one file. The server will read the file from left to right. If the server doesn’t find the first one, it will look for another one in the right.

#Custom default index pages 
DirectoryIndex welcome.html hello.html welcome.html first.php

How To Change Default Index Page in .htaccess from cPanel

Step::7 Save the changes and close the editor.

How To Change Default Index Page in .htaccess from cPanel

For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channelhttps://youtube.com/redserverhost.com

Facebook Page https://facebook.com/redserverhost

Twitter Pagehttps://twitter.com/redserverhost.com

Thanks for Reading this article !!! We hope this was helpful to you all.

If you have any suggestions or problems related to this video, please let us know via the comment section below.

Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

Scroll to Top