Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Anyone know how to make index.html default instead of index.php?

Anyone know how to make index.html default instead of index.php?

Locked

Views: 56,278

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
19 Sep 2006, 8:26 PM
#1
msbettybebe avatar

msbettybebe

New Zenner

Join Date:
Aug 2006
Location:
West La
Posts:
17
Plugin Contributions:
0

Anyone know how to make index.html default instead of index.php?

I have a flash intro page and I made an index.html and put my flash intro on there. When you click on the "products" page in my flash, there is a link you can click on to take you to my shopping cart, which is in my index.php. What do I have to do so that when you enter the web address for my site "www.spunkybunky.com", it takes you to https://www.spunkybunky.com/index.html instead of https://www.spunkybunky.com/index.php.

I thought that you were supposed to change your setting in your control panel of your server to make index.html your default instead of index.php. But godaddy doesn't provide that option, at least not anywhere I've looked.

My friend suggested altering my .htaccess but when I did that, my page just got messed up.

Here are the links to my site.
I want "www.spunkybunky.com/index.html" to LOAD when "www.spunkybunky.com" is typed instead of "www.spunkybunky.com/index.php"

I was thinking I can go through ALL my files and rename everything from index.php to index2.php but that would be really tedious since there are too many files that come with zencart.

Can anyone help? Please let me know. Thank you.

Betty

19 Sep 2006, 10:32 PM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Anyone know how to make index.html default instead of index.php?

My own server always uses index.html first, before index.php, if both files exist,
seems godaddy does not so you could have zencart installed in folder named store(or cart), then link your index.html page to spunkybunky.com/store/index.php
Have to say though that not a lover of flash intro pages, and usually
go elsewhere whilst waiting for them to load.
HTH
:smile:

20 Sep 2006, 1:05 AM
#3
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Anyone know how to make index.html default instead of index.php?

.html will be the default,

20 Sep 2006, 6:14 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Anyone know how to make index.html default instead of index.php?

.html will be the default
Should be, but not in this case, msbettybebe is correct, enter url as she states,
goes straight to cart, not index.html
:wacko:

20 Sep 2006, 12:14 PM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Anyone know how to make index.html default instead of index.php?

ok not a problem

Put a .htaccess file in your web root directory, if there isn't one yet.

Then add the line:

DirectoryIndex index.html index.htm index.php

or change it accordingly.
That line tells apache what file to look at first when it is not specified in the URL, in the same order that you put it after DirectoryIndex.

In this example it would first look for index.html, load it if found, if not look for index.htm, load it if found, and if not load index.php.

5 Nov 2006, 2:51 PM
#6
guilliam avatar

guilliam

New Zenner

Join Date:
Nov 2006
Posts:
1
Plugin Contributions:
0

Re: Anyone know how to make index.html default instead of index.php?

Merlinpa1969:

ok not a problem

Put a .htaccess file in your web root directory, if there isn't one yet.

Then add the line:

DirectoryIndex index.html index.htm index.php

or change it accordingly.
That line tells apache what file to look at first when it is not specified in the URL, in the same order that you put it after DirectoryIndex.

In this example it would first look for index.html, load it if found, if not look for index.htm, load it if found, and if not load index.php.

with godaddy? that wont simply work on my experience. godaddy simply is not for customizers..

only i can think of is place it in a sub folder which is really annoying.. aside from this.. STAY AWAY from godaddy.com if you need more control over your hosting account.

  • guilliam
6 Nov 2006, 3:53 AM
#7
msbettybebe avatar

msbettybebe

New Zenner

Join Date:
Aug 2006
Location:
West La
Posts:
17
Plugin Contributions:
0

Re: Anyone know how to make index.html default instead of index.php?

I solved this problem by changing the order of permissions in my htaccess file. My friend actually did this for me but all you have to do is reorder them. (exactly how Merlinpa1969 describes) I think a few more files were added into my file. If anyone has the same problem as I do and wants to know how to do it, let me know and I'll look in my file to help you out.
If you guys don't use godaddy, may I ask who you use for hosting?

6 Nov 2006, 7:28 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Anyone know how to make index.html default instead of index.php?

msbettybebe:

If you guys don't use godaddy, may I ask who you use for hosting?

There are a lot of great hosting options available.
Some recommended hosts for Zen Cart sites can be found here:
http://www.zen-cart.com/index.php?main_page=infopages&pages_id=10

23 May 2011, 2:44 PM
#9
jingjoenie avatar

jingjoenie

New Zenner

Join Date:
May 2011
Posts:
1
Plugin Contributions:
0

Re: Anyone know how to make index.html default instead of index.php?

msbettybebe:

I solved this problem by changing the order of permissions in my htaccess file. My friend actually did this for me but all you have to do is reorder them. (exactly how Merlinpa1969 describes) I think a few more files were added into my file. If anyone has the same problem as I do and wants to know how to do it, let me know and I'll look in my file to help you out.
If you guys don't use godaddy, may I ask who you use for hosting?

I got same problem perhaps?I am not really sure because quite new to this. When I open my site the display is directed to the index.php content instead to the index.html content. Therefore, in this regard, I would like to ask how you manage to correct it, what was the procedure you made?Please let me know.. :(

23 May 2011, 3:01 PM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Anyone know how to make index.html default instead of index.php?

Please read post #5 of this thread.