AlphaJoe Posted September 15, 2004 Posted September 15, 2004 How do I change my default page to open an index.php file instead of an index.html file first? I have searched through cpanel, but I can't find an option to change this. Thanks Quote
TCH-Rob Posted September 15, 2004 Posted September 15, 2004 Dont have to, it will look for index.htm, index.html, default.htm or index.php be default. If there is no other index file in that folder but the index.php it should display as the default index page. Quote
mriffey Posted May 10, 2005 Posted May 10, 2005 Dont have to, it will look for index.htm, index.html, default.htm or index.php be default. If there is no other index file in that folder but the index.php it should display as the default index page. <{POST_SNAPBACK}> Rob, It appears, at least on my server, that index.php OVERRIDES index.htm or default.htm. I need index.htm (or anything besides index.php<g>) to be the default so I can use it as an entry/splash to index.php (the store itself). I can easily rename index.php, but then I must change every reference to index.php in my cart software and repeatedly do so every time I apply an update to the store software. Doesnt sound much like fun:) How can I do this without renaming index.php? Mark Quote
TCH-Bruce Posted May 10, 2005 Posted May 10, 2005 The server is configured to serve pages in this order index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm If you want your index.php file to be served just rename your index.html file. If it's not working correctly you can add a directory index statement to the .htaccess file to serve the pages in the order you specify. >DirectoryIndex index.php index.html index.htm default.ht Quote
abinidi Posted May 10, 2005 Posted May 10, 2005 I need index.htm (or anything besides index.php<g>) to be the default so I can use it as an entry/splash to index.php (the store itself). <{POST_SNAPBACK}> The server is configured to serve pages in this order index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm <{POST_SNAPBACK}> So the easy answer is have your entry/splash page be titled index.html, and leave your storefront page as index.php. When customers hit the directory (without a page), then they will get the splash page. When your store code wants to go back to the storefront, it will go to index.php. Cool. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.