How to setup custom static homepage in WordPress site?

Step::1 Login to your cPanel dashboard and click on File Manager

Step::2 Then go to public_html

Step::3 Here are some of the files which are responsible for homepage of your WordPress site like index.phpindex.htmlsample.html Now you just need to prioritize them in order to set the default homepage.

Step::4 Find .htaccess file inside public_html (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 htaccess or 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.

Step::6 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.

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

Was this answer helpful?

Related Articles

How to display Related Pages in WordPress?

Step::1 Login to your WordPress admin dashboard Step::2 Go to Plugins and click on Add...

How To Fix ‘413 Request Entity Too Large’ WordPress Error using .htaccess?

This error occurs generally when a user tries to upload a large size file and media in the...

How To Force Logout All Users In WordPress At Once?

How To Force Logout All Users In WordPress At Once? Step::1 Let’s start by logging into the...

How to Add Google Analytics to your WordPress website?

In this article, we will share how you can easily install Google Analytics in your WordPress...

How to Add WhatsApp live chat to your WordPress site?

Step::1 Login to your WordPress dashboardStep::2 Go to the Plugins section and click on Add...