: WordPress sets the homepage to index.php instead of default.php I'm using free hosting with 000webhost.com, for that the default page it loads is default.php. But I've installed WordPress and now
I'm using free hosting with 000webhost.com, for that the default page it loads is default.php. But I've installed WordPress and now WordPress generated index.php as its homepage file.
As an easy solution, I just redirected from default.php to index.php when the page loads using the code:
<meta http-equiv="refresh" content="0; url=http://thigale.com/" />
But can anyone suggest me any other way? Instead of this stupid process?
More posts by @Kristi941
1 Comments
Sorted by latest first Latest Oldest Best
For servers using Apache as a server you can create a file named .htaccess in the root of the domain with the content:
DirectoryIndex index.php index.html
The Apache server must also have .htaccess enabled. If the .htaccess file already exists you should add the line above to the existing file.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.