• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1034
  • Last Modified:

Index.html priority over index.php

Im using godaddy for hosting and my default page is index.php here: www.fifthagency.com. I'd like to have my index page as index.html (inro) which is located in the root of the site (www.fifthagency.com/index.html)
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

0
Anti-Mhz
Asked:
Anti-Mhz
  • 2
2 Solutions
 
Anti-MhzAuthor Commented:
the answer was  DirectoryIndex index.html index.php
0
 
jtdebeerCommented:
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.
0
 
jtdebeerCommented:
May also use Java in your index.html


< html >
   < head >
      < title >index< /title >
   < /head >
   < body >
      < script language="javascript" >
         window.location = "http://www.example.com/mypage.aspx";
      < /script >
      Index page.
   < /body >
< /html >

Open in new window

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now