Zen Cart Logo
Forums / General Questions / chnage name of index.php

chnage name of index.php

Locked

Views: 594

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Jul 2010, 1:38 PM
#1
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

chnage name of index.php

Does anybody know if its possible to change the name of index.php which forms the homepage and pages below it?

The reason I need to do this is because I need to upload an older version of a website I'm rebuilding under the same directory. This relies on html files rather than php, so the homepage will be index.htm. I don't want any confusion between the two when someone logs onto the site.

8 Jul 2010, 2:16 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: chnage name of index.php

There shouldn't be any confusion - the index.html will load first on most server configfurations, assuming that's what you want.

You could also move Zencart to a subdirectory.

To answer your question, though, I'm sure it can be done, but with some difficulty.

8 Jul 2010, 3:43 PM
#3
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: chnage name of index.php

Find the .htaccess file in the root directory. Look for an entry called DirectoryIndex and change it to:

DirectoryIndex index.html

8 Jul 2010, 3:53 PM
#4
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: chnage name of index.php

Thanks for that. Will look at both options. Its only temporary anyway until I get the new site live. the old sites server is being switched off tomorrow so I need to be hasty about moving it.