Jump to content

Recommended Posts

Posted

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

Posted

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.

  • 7 months later...
Posted
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.

 

 

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

Posted

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

Posted
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).

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

 

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...