9 replies
  • WEB DESIGN
  • |
Hello everybody,

I have a html page I want to set as the home page of a website I own.
The html page is a landing page.
The problem I am facing is, the current home page I believe is called index.php

How can I upload a html page to the site, that will replace this current index page and have the html page show up on the website?

What would happen if I was to delete this index.php page?
I use file manager in cpanel to upload html pages as a rule, but I have never replaced the home page before to a new one. Is this an easy task?

Thanks in advance.
#indexphp
  • Profile picture of the author DubDubDubDot
    Just upload the index.html file and see what happens. The directory index is probably set up to allow index.html and index.php and whatever else. Priority is probably given to the .html file.
    {{ DiscussionBoard.errors[8564946].message }}
  • Profile picture of the author DubDubDubDot
    If index.php is still loading after you upload index.html, then rename it to index.phpX and see if it goes to index.html then.
    {{ DiscussionBoard.errors[8564949].message }}
  • Profile picture of the author salegurus
    Ask Here: Website Design
    Signature
    Think of how stupid the average person is, and realize half of them are stupider than that.

    ― George Carlin
    {{ DiscussionBoard.errors[8564961].message }}
  • Profile picture of the author djneill
    When I use an html editor I normally ftp it to the server instead of Cpanel but theres really no difference.

    Save you homepage as index and that will automatically make it the home page but if you have more then one you'll want to change the name of the other such as index2 this way it wont be a problem.
    {{ DiscussionBoard.errors[8564976].message }}
  • Profile picture of the author djneill
    Just a tip, always use a real picture. People tend to dis-credit cartoon pictures as being unprofessional and not trust worthy.
    {{ DiscussionBoard.errors[8564984].message }}
  • Profile picture of the author JamesBorg
    Just rename index.php in the file manager so you have a backup in case anything goes wrong. Rename it to indexold.php or something like that.

    Then upload your HTML file and rename it to index.php. You don't have to use any PHP code to have your file named index.php -- it can be bare HTML. You should be able to name it index.html instead, but at least we know that index.php works with your configuration, so I'd stick with that.
    {{ DiscussionBoard.errors[8564999].message }}
  • Profile picture of the author Dennis Gaskill
    Most servers look for index.html first, so if that's there it will load that and ignore the index.php page (unless someone specifically types that index.php into their browser or follows a link to that exact page).
    Signature

    Just when you think you've got it all figured out, someone changes the rules.

    {{ DiscussionBoard.errors[8565005].message }}
  • Profile picture of the author carleywatson
    Thank you so much for sharing good info which is very helpful for me.
    {{ DiscussionBoard.errors[8571821].message }}

Trending Topics