No announcement yet.

Default file type on web request

  • Filter
  • Time
  • Show
Clear All
new posts

  • Maddy7
    started a topic Default file type on web request

    Default file type on web request

    Hello everyone,,

    Though this seems like a noobie question (and it may end up being so) I did some research here and am still not sure what's going on.

    I have configured a website through SiteWorx with both an Index.html and Index.php page in the root of the site. The Index.php page must be in that location with that name because it takes parameters and displays items in the shopping cart. The Index.html page had to be created for web optimization and should be the home page of the site. For example if I type it should pull up the Index.html page but right now it is pulling the Index.php page.

    I went into the httpd.conf file for Apache and the DirectoryIndex line only points to Index.html. This leads me to believe that SiteWorx is setting the default page to PHP instead of HTML somewhere.

    Any suggestions would be greatly appreciated. Thanks in advance for your time.

  • d2d4j
    Hi maddy7

    Welcome to IW forums

    I would check any htaccess files in root folder to make sure it is not defaulting to php over html

    Failing that, in https.conf try setting html and php save and restart apache

    I think htaccess though you would find an override from html to php

    You would need to clear your browser cache on each check to make sure it is not a browser cache giving wrong page

    Many thanks


    Leave a comment: