Index.html priority over index.php

Posted on 2009-12-22
Last Modified: 2013-12-24
Im using godaddy for hosting and my default page is index.php here: I'd like to have my index page as index.html (inro) which is located in the root of the site (
Ive tried adding code below to .htaccess in the root of the web site with no luck. What else could it be?
RewriteRule index\.php index.html [NC,R]

Open in new window

Question by:Anti-Mhz
    LVL 1

    Author Comment

    the answer was  DirectoryIndex index.html index.php
    LVL 8

    Accepted Solution

    You may want to use a redirect in your index.html page or simply ask them to change your default document.
    This can also be done via the control panel.
    LVL 8

    Assisted Solution

    May also use Java in your index.html

    < html >
       < head >
          < title >index< /title >
       < /head >
       < body >
          < script language="javascript" >
             window.location = "";
          < /script >
          Index page.
       < /body >
    < /html >

    Open in new window


    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Let’s list some of the technologies that enable smooth teleworking. 
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now