Mobile app version of vmapp.org
Login or Join
Kristi941

: 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

@Kristi941

Posted in: #Homepage #WebDevelopment #Wordpress

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

1 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno851

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme