0
Welcome Guest! Login
0 items Join Now

Can I have index.html point to index.php in root folder?

  • Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • I would like an initial 'splash' page - a page with two images to point to two separate sites. One of the sites is another domain on another server.

      Question: Can I have one of the images on this index.html page point to an index.php page in the same folder (the site is Joomla)

      Which order will the pages be searched for? PHP or HTML?

      I hope this makes sense. Thanks for your help.
    • Matthew's Avatar
    • Matthew
    • Hero Rocketeer
    • Posts: 299
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • The order in which those extensions are searched is something that varies from host to host. In my experience, .htm/.html tend to take precedence more often than not, but it really comes down to your host.

      Otherwise, what you want to do is entirely doable, however, you don't need to do it that way, if you don't want to.

      At this site: www.sequencestaffing.com I have (per clients request) created such a splash page, but it is just a highly modified joomla template which runs on mainmenu-home only.

      Best of luck!
    • www.gofftech.com Web Design
  • Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • Thanks - that's v reassuring - I'll plough on.
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • You can change the order of precedence by putting this in your htaccess file.
      DirectoryIndex index.html index.php index.shtml index.XXX
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • GollumX wrote:
      You can change the order of precedence by putting this in your htaccess file.
      DirectoryIndex index.html index.php index.shtml index.XXX


      Nice tip :)
    • Toolbox Digital | Dribbble | Forrst
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • Not guaranteed to work though... :( depends on how your host has configured the server. If it doesn't work Google is your friend :) .... with phpSUexec enabled servers, it probably goes in php.ini instead.

      The Apache manual is the best place to look.

      I think you can also specify a different filename first like so:
      DirectoryIndex underconstruction.html index.html index.php index.shtml index.XXX

      (If anyone can confirm this that would be cool, thanks)
    • Say no to Internet Explorer 6.
      twitter.com/mark_up
    • urj2ic8's Avatar
    • urj2ic8
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago
    • GollumX wrote:
      Not guaranteed to work though... :( depends on how your host has configured the server. If it doesn't work Google is your friend :) .... with phpSUexec enabled servers, it probably goes in php.ini instead.

      The Apache manual is the best place to look.

      I think you can also specify a different filename first like so:
      DirectoryIndex underconstruction.html index.html index.php index.shtml index.XXX

      (If anyone can confirm this that would be cool, thanks)

      yeah you can.
    • Billy Zoellers
    • GollumX's Avatar
    • GollumX
    • Elite Rocketeer
    • Posts: 2817
    • Thanks: 0

    Re: Can I have index.html point to index.php in root folder?

    Posted 17 years 6 months ago

Time to create page: 0.082 seconds