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.
Hope you enjoyed the video..thanks for watching!!!
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel - / redserverhost.com
Facebook Page- / redserverhost
Twitter Page- / redserverhost.com
Official Website- https://redserverhost.com
If you have any suggestions or problems related to this video, please let us know via the comment section below.
Смотрите видео [🔴LIVE] How to change default index page via htaccess? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Red Server Host 20 Август 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 58 раз и оно понравилось людям.