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

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

Red Server Host

4 года назад

7,927 Просмотров

Today in this video 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.
Follow the steps to change default index page name in htaccess via cpanel:

Step::1 Login to your cPanel using your username and password
Step::2 Click on the File Manager icon under FILES section
Step::3 Find the .htaccess file located in the public_html directory.
(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. It will show up the Edit pop up. Click on Edit button.
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


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


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

Facebook Page- https://facebook.com/redserverhost
Twitter Page- https://twitter.com/redserverhost.com
Official Website- https://redserverhost.com

Thank you for watching the video. 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.

Тэги:

#How_To_Change_Default_Index_Page_In_.htaccess_From_cPanel #How_to_Change_your_Default_Index_Page_in_.htaccess_... #How_to_change_default_index_page_in_cPanel #How_to_change_default_index_page_in_.htaccess_from_cPanel #How_to_set_index_page_from_cPanel_via_.htaccess_...
Ссылки и html тэги не поддерживаются


Комментарии:

Chuppy  Production
Chuppy Production - 17.01.2023 10:59

i didnt understand anything .. without proof

Ответить