Forums / Templates, Stylesheets, Page Layout / The "Home" links not working

The "Home" links not working

Locked

Views: 1,248

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
25 Sep 2007, 12:41 PM
#1
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

The "Home" links not working

When I click on "Home" in bread-crumbs or the "Home" link way up next to the Log-In in it opens a 403.html error page instead of the store's main page:

http://www.musecards.com/store/index.php?main_page=index

I know it's because the URL ref is incorrect, but i don't know where to correct that in the code.

Is that in one of the PHP pages, & if so, which one?

Thanks in advance,

Alice

25 Sep 2007, 1:03 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: The "Home" links not working

Wehn navigating to http://www.musecards.com/store you should resolve to some file and usually index.xxx and in the case of Zen Cart this is index.php

One of your home links is http://www.musecards.com/store/index.php?main_page=index
while others are
http://www.musecards.com/store/

Either should load the index.php file

If you are on a linux server, check your htaccess file entries and any that are at the root of your site and at the /store location and possibly add or correct one to include:

DirectoryIndex index.html index.php

Zen-Venom Get Bitten

25 Sep 2007, 1:11 PM
#3
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: The "Home" links not working

Thanks--

I looked in my htaccess file and found this at the end:

<Files ~ "^.ht">
order allow,deny
deny from all
satisfy all
</Files>

Define default pages

DirectoryIndex index.html

Could this code be preventing the Home link to load?

25 Sep 2007, 1:26 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: The "Home" links not working

add as I suggested to the DirectoryIndex line index.php

Zen-Venom Get Bitten

25 Sep 2007, 1:28 PM
#5
bluealice avatar

bluealice

Zen Follower

Join Date:
Jan 2007
Posts:
148
Plugin Contributions:
0

Re: The "Home" links not working

Aha! I had missed the "php" part :blush:

Added & it fixed the problem.

Thanks Kobra-- you're the best!