How do I change my index page from php to html?

Avatar
  • updated
  • Answered
i recently uploaded my site using Filezilla and wanted to know how to change my index page from .php? to .html. the website is www.glitzycreations.com/index.php? currently but i want to change it to .html extension for proper upload . thanks
Duplicates 2
How do I change the server default from index.php to index.html

When I first started here and uploaded my first web page, it used an index.php and it could not be found on the web until we changed something on the server.  Now I need to delete and update my web site to index.html.  I did not want to remove my old one until I knew for sure my new one would show up.  But I don't recall what it was or where the setting was to change the default. Please advise.

Site displays index.html instead of index.php
Just moved my site from localhost to my website with Akeeba Quickstart. Move went smooth, but my site displays my index.htm
page when I need it to display my index.php page. My .htacess file is now blank too. Do I need to recreate my .htaccess file and what would be the default config.

Thanks in advance,
Rick
Avatar
anonymous
Quote from timmyleeturner

Yes, I figured it out while waiting for support.  Now I'm trying to figure out why my site is down after turning on Free SSL.  Problems problems.

With more info, we may be able to offer assistance. Otherwise, please contact Live Support again.

Avatar
timmyleeturner

Yes, I figured it out while waiting for support.  Now I'm trying to figure out why my site is down after turning on Free SSL.  Problems problems.

Avatar
Scott
Hello miyoka, If you mean you want to rename an index.php to index.html, that will not be something you can do without changing the code for the file as php and html are entirely different languages. Do you mean that you have already created an index.html page but it is not showing? In that case, you will want to take a look at our article on Changing your default index page. Doing this will let you set the index page to whatever you desire as long as it exists. Kindest Regards, Scott M
Avatar
JacobIMH
Hello Rick, and thanks for your question.

I see that it looks like you've already updated your (.htaccess) file to use the rule:

DirectoryIndex index.php

So that the (index.php) script is treated at the main index file for your directory. I see that you also have a (htaccess.txt) file also located in the same directory which appears to be a default template for a Joomla site.

So you should simply be able to re-name the (htaccess.txt) file to (.htaccess) to get your URL rewrites working properly again.

Please let us know if you have any further questions at all.

- Jacob