Zen Cart Logo
Forums / General Questions / Where is the "Home" url defined?

Where is the "Home" url defined?

Locked

Views: 988

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Dec 2008, 4:42 PM
#1
bonmot avatar

bonmot

New Zenner

Join Date:
Nov 2008
Posts:
10
Plugin Contributions:
0

Where is the "Home" url defined?

I'm sorry this sems to be such a basic thing but I just can't find it anywhere.
In my header are the links: "Home", "Log In", "Shopping Cart", "Checkout", etc. All the links, when moused over, show a correct url except for "Home" which just shows the root folder but not the specific file to open.
Where is the url defined?
Many thanks!

1 Dec 2008, 5:42 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Where is the "Home" url defined?

You shouldn't need a specific page. Browsers will look for index.html or index.php automatically.

1 Dec 2008, 6:43 PM
#3
maxima avatar

maxima

New Zenner

Join Date:
Jun 2006
Posts:
86
Plugin Contributions:
0

Re: Where is the "Home" url defined?

yoursite/index.php

If you are trying to place a link within a template file

<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>Home page</a>
1 Dec 2008, 11:54 PM
#4
bonmot avatar

bonmot

New Zenner

Join Date:
Nov 2008
Posts:
10
Plugin Contributions:
0

Re: Where is the "Home" url defined?

afo:

You shouldn't need a specific page. Browsers will look for index.html or index.php automatically.

I guess it only finds it if it's in the site root folder rather than the shopping cart root. I guess I can live without the "home" link. Thanks for checking this out, I appreciate it!

2 Dec 2008, 2:56 PM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Where is the "Home" url defined?

It should work even if it's not in the root. If the "home" address is http://www.mydomain.com/store, browsers should look in /store for index.php or index.html. I've got Zen Cart installed in separate folders as test sites to keep from playing with the live sites.