Forums / Templates, Stylesheets, Page Layout / HELP The home link will not goto home

HELP The home link will not goto home

Locked

Views: 3,813

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
5 May 2008, 11:14 PM
#1
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

HELP The home link will not goto home

The categories link that shows up across the top of page named HOME that should link to the home page .... Does not go to the home page it shows all my directories and I have to click the index page to get back to the index page. Where do I change that at ? Peace

5 May 2008, 11:30 PM
#2
Kim avatar

Kim

Obaa-san

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

Re: HELP The home link will not goto home

Your URL?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

6 May 2008, 1:42 AM
#3
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

Kim:

Your URL?
The site is not ready yet but here is the URL
kimberliteassemblers.com/commerce/a/b/

6 May 2008, 10:54 PM
#4
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

The home page link across the top of page when clicked takes me to my directories. How do I edit the links across the top of page?

7 May 2008, 1:27 AM
#5
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

The home page link that is at header and footer does not take me to my store home page ? How do I edit that link? Please help Meeee

7 May 2008, 3:01 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: HELP The home link will not goto home

It's giving you a file-listing.
That means your webserver is not setup to understand "index.php" to be a default page.
It's not a Zen Cart issue.

You'll need to ask your hosting company to set "index.php" to be treated as a default page, or you can try to do it yourself by creating a .htaccess file with something like this in it:```
DiRectoryindex index.php default.php index.shtml index.html index.htm

But, really your hosting company should have already done this if they're running PHP on the server.

Also, make sure you didn't ignore any of the warnings presented during the zc_install process. They are there to ensure that you deal with the problems before they cause unexpected behavior on your site.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2008, 10:38 PM
#7
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

The HOME links on all pages do not go to Store Index page they goto a page that shows all my directories? How do I edit that home link? Thks Peace

7 May 2008, 11:30 PM
#8
dwells avatar

dwells

Zen Follower

Join Date:
Nov 2007
Location:
Burney, CA. USA
Posts:
130
Plugin Contributions:
2

Re: HELP The home link will not goto home

fuzzyevolution:

The HOME links on all pages do not go to Store Index page they goto a page that shows all my directories? How do I edit that home link? Thks Peace

It sounds to me that your host doesn't have it set up to allow index.php to be a default file name.

What happens if you just type in your domain name? ( http://www.YOUR_DOMAIN.com ) does it take you to your home page, or does it show a list of directories?

Patience is Virtue...
ShopWells.com

Current Version of Zen Cart: 1.3.8a

7 May 2008, 11:50 PM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: HELP The home link will not goto home

Sounds like the Hoster does not setup a default Index page (handy for new accounts that do not have any Content yet) nor it would seem, is the Hoster concerned much about security. Showing what's inside a dir. is not good for security purposes and is easily prevented.

As to Zen Cart, did you install it in a subdirectory? That could explain your current problem. More information on your setup would be helpful.

The learning is in the doing.

Potent Products

8 May 2008, 12:12 AM
#10
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

DWells:

It sounds to me that your host doesn't have it set up to allow index.php to be a default file name.

What happens if you just type in your domain name? ( http://www.YOUR_DOMAIN.com ) does it take you to your home page, or does it show a list of directories?

No it goes to my store home page. I set my host server to my zen cart home page.
My zen cart is also in sub directories. Peace

8 May 2008, 12:15 AM
#11
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

Website Rob:

Sounds like the Hoster does not setup a default Index page (handy for new accounts that do not have any Content yet) nor it would seem, is the Hoster concerned much about security. Showing what's inside a dir. is not good for security purposes and is easily prevented.

As to Zen Cart, did you install it in a subdirectory? That could explain your current problem. More information on your setup would be helpful.

Yes zen cart is in a subdirectory. I redirected my domain name to my zen cart store that is in a subdirectory.
my domain is https://www.kimberliteassemblers.com

8 May 2008, 12:51 AM
#12
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: HELP The home link will not goto home

And due to the changes you now made, another problem bites the dust. :wink:

The learning is in the doing.

Potent Products

8 May 2008, 1:05 AM
#13
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

Website Rob:

And due to the changes you now made, another problem bites the dust. :wink:

No I still have same problem

8 May 2008, 1:11 AM
#14
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: HELP The home link will not goto home

Refresh you Browser page. I used different Browsers to go to http://www.kimberliteassemblers.com/ and they all showed your Zen Cart Index page.

The learning is in the doing.

Potent Products

8 May 2008, 1:53 AM
#15
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

Website Rob:

Refresh you Browser page. I used different Browsers to go to http://www.kimberliteassemblers.com/ and they all showed your Zen Cart Index page.
yes but from my zen cart home page the HOME links do not take me back to my store home.

8 May 2008, 1:57 AM
#16
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: HELP The home link will not goto home

That is because of this:
http://www.kimberliteassemblers.com/commerce/a/b/

Change your 'includes/configure.php' file to point to the correct URL.

Or...

Reinstall Zen Cart in you Document Root dir. - one level above where it is now.

The learning is in the doing.

Potent Products

8 May 2008, 2:24 AM
#17
dwells avatar

dwells

Zen Follower

Join Date:
Nov 2007
Location:
Burney, CA. USA
Posts:
130
Plugin Contributions:
2

Re: HELP The home link will not goto home

fuzzyevolution:

No it goes to my store home page. I set my host server to my zen cart home page.
My zen cart is also in sub directories. Peace

After seeing the link to your site, my money is on the way you're forwarding your domain to the Zen Cart folder is the cause of the problem... as well as it appears you probably installed Zen Cart before the forwarding took place.

If you told your host to forward: http://www.kimberliteassemblers.com/
To: http://www.kimberliteassemblers.com/commerce/a/b/index.php

Then the fix for your problem is with your host, so that index.php is a valid default file (so that when someone goes to: http://www.kimberliteassemblers.com/commerce/a/b/ it automatically loads http://www.kimberliteassemblers.com/commerce/a/b/index.php ) and after it is fixed, you should remove the /index.php from the forwarding address... But...

If you only told your host to forward: http://www.kimberliteassemblers.com/
To: http://www.kimberliteassemblers.com/commerce/a/b/

Then this is the Fix:

in .../includes/configure.php change Lines 25 & 26

define('DIR_WS_CATALOG', '/commerce/a/b/');
  define('DIR_WS_HTTPS_CATALOG', '/commerce/a/b/');

To:

define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

AND in: ../admin/includes/configure.php Lines 41, 42, 43 & 44
From:

 define('DIR_WS_ADMIN', '/commerce/a/b/admin/');
  define('DIR_WS_CATALOG', '/commerce/a/b/');
  define('DIR_WS_HTTPS_ADMIN', '/commerce/a/b/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/commerce/a/b/');

To:

 define('DIR_WS_ADMIN', '/YOUR_ADMIN_FOLDER_NAME/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/YOUR_ADMIN_FOLDER_NAME/');
  define('DIR_WS_HTTPS_CATALOG', '/');

I suggest that while doing this you also change the name of your "admin" folder to make your site more secure and change lines 41 & 43 to represent this change in: ../admin/includes/configure.php

These are code samples are educated guesses as to what your configure files currently show right now based on the location the "home" link sends you.

Hope this helps -- Best of Luck.

Patience is Virtue...
ShopWells.com

Current Version of Zen Cart: 1.3.8a

8 May 2008, 2:26 AM
#18
dwells avatar

dwells

Zen Follower

Join Date:
Nov 2007
Location:
Burney, CA. USA
Posts:
130
Plugin Contributions:
2

Re: HELP The home link will not goto home

Ooops... Looks like Website Rob posted before me.

Website Rob:

That is because of this:
http://www.kimberliteassemblers.com/commerce/a/b/

Change your 'includes/configure.php' file to point to the correct URL.

Or...

Reinstall Zen Cart in you Document Root dir. - one level above where it is now.

Patience is Virtue...
ShopWells.com

Current Version of Zen Cart: 1.3.8a

8 May 2008, 9:59 PM
#19
fuzzyevolution avatar

fuzzyevolution

New Zenner

Join Date:
May 2008
Posts:
25
Plugin Contributions:
0

Re: HELP The home link will not goto home

DWells:

After seeing the link to your site, my money is on the way you're forwarding your domain to the Zen Cart folder is the cause of the problem... as well as it appears you probably installed Zen Cart before the forwarding took place.

If you told your host to forward: http://www.kimberliteassemblers.com/
To: http://www.kimberliteassemblers.com/commerce/a/b/index.php

Then the fix for your problem is with your host, so that index.php is a valid default file (so that when someone goes to: http://www.kimberliteassemblers.com/commerce/a/b/ it automatically loads http://www.kimberliteassemblers.com/commerce/a/b/index.php ) and after it is fixed, you should remove the /index.php from the forwarding address... But...

If you only told your host to forward: http://www.kimberliteassemblers.com/
To: http://www.kimberliteassemblers.com/commerce/a/b/

Then this is the Fix:

in .../includes/configure.php change Lines 25 & 26

define('DIR_WS_CATALOG', '/commerce/a/b/');
define('DIR_WS_HTTPS_CATALOG', '/commerce/a/b/');

> To:
> ```
define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

AND in: ../admin/includes/configure.php Lines 41, 42, 43 & 44
From:

define('DIR_WS_ADMIN', '/commerce/a/b/admin/');
define('DIR_WS_CATALOG', '/commerce/a/b/');
define('DIR_WS_HTTPS_ADMIN', '/commerce/a/b/admin/');
define('DIR_WS_HTTPS_CATALOG', '/commerce/a/b/');

> To:
> ```
 define('DIR_WS_ADMIN', '/YOUR_ADMIN_FOLDER_NAME/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/YOUR_ADMIN_FOLDER_NAME/');
  define('DIR_WS_HTTPS_CATALOG', '/');

I suggest that while doing this you also change the name of your "admin" folder to make your site more secure and change lines 41 & 43 to represent this change in: ../admin/includes/configure.php

These are code samples are educated guesses as to what your configure files currently show right now based on the location the "home" link sends you.

Hope this helps -- Best of Luck.

DWELLS I made the changes per your suggestion & the home links on the store index page now take me to the store index page BUT the whole page seems to be missing pics, fonts and all the links on the page take me to a 404 error maybe I need to edit the CSS idaknow any thoughts on this would help if it is going to be a pain then I will just install zen in my root folder. Could you give me a quick one liner on re-installing....???? Peace

9 May 2008, 5:27 AM
#20
dwells avatar

dwells

Zen Follower

Join Date:
Nov 2007
Location:
Burney, CA. USA
Posts:
130
Plugin Contributions:
2

Re: HELP The home link will not goto home

I think I checked out your site while you were making the changes... or shortly after you made the suggested changes (before changing them back).

what I saw was it looks like you are forwarding to a file, instead of a directory... the reason I figure this is what is happening, is some of my surfing earlier had ```
http://www.kimberliteassemblers.com/index.phpindex.php?main_page=

the "index.phpindex.php" is why you were getting 404 errors.

and because your site is allowing people to see the file structure of your site I suggest asking your hosting company if they have (and if they don't will they) it fixed so when someone goes to a directory, it loads index.php if available.

there is a setting in the hosting system (that you may have access to) that tells your server what to load and in what order... if index.php isn't listed Zen Cart will not load, and instead show the folder structure of the site.... most sites have it set up so it loads "index.html" then "index.php" and some hosts have an extra "default.*"

Again, talk to your host -- because if what I think is happening is the cause, even if you move it to your root folder, you'll continue to have the same problem.

If your host says it is set up to load "index.php" when someone types in a directory name... then you could try reinstalling Zen Cart to your root folder, or moving your current cart.

I know you asked for a one liner for what you should do-- but I thought it needed a longer answer.

Hope you manage to get your site working soon.

Patience is Virtue...
ShopWells.com

Current Version of Zen Cart: 1.3.8a