[Zen Cart] Default Home Page

Magic SEO URLs for Zen Cart.
Merilee
Posts: 5
Joined: Mon Apr 07, 2008 8:00 am

[Zen Cart] Default Home Page

Postby Merilee » Mon Apr 07, 2008 8:11 am

I'm working with Zencart and just installed Magic SEO URLs, it's working beautifully, but it's taken over the home page somehow. We have the cart in the main directory of the website, which I do not recommend. But it was there when I got this job and it's doing rather well in the search engines so I do not wish to move it. The Actual home page of the site is index.html, the cart is index.php. Having it set like this worked just fine until I installed MSU, now it's going straight to the cart and bypassing my HTML homepage. I tried changing the home page to home.html and contacting the host, asking them to put it first as the default home page, but they gave me lip telling me to move the cart to a subdirectory. Any ideas on how to get my homepage back?

inveo
Inveo Support
Posts: 1281
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Default Home Page

Postby inveo » Mon Apr 07, 2008 2:47 pm

Please try to place following code to the beginning of .htaccess file:

Code: Select all

DirectoryIndex index.html index.php


Please also make sure your .htaccess file keep your changes.

Merilee
Posts: 5
Joined: Mon Apr 07, 2008 8:00 am

Re: [Zen Cart] Default Home Page

Postby Merilee » Mon Apr 07, 2008 3:23 pm

I've already tried that.... here's a clipping of my .htaccess I just downloaded from the server. BTW I changed the home page to home.html


Code: Select all

#
# This file was generated by Magic SEO URL for ZenCart - http://www.magic-seo-url.com/zencart/
# 2006 - 2008, (c) Jiri Stavinoha
#
DirectoryIndex home.html index.php
RewriteEngine On
RewriteBase /

inveo
Inveo Support
Posts: 1281
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Default Home Page

Postby inveo » Mon Apr 07, 2008 3:26 pm

Pleas try to ask you host for enabling DirectoryIndex directive overriding in .htaccess.

Merilee
Posts: 5
Joined: Mon Apr 07, 2008 8:00 am

Re: [Zen Cart] Default Home Page

Postby Merilee » Mon Apr 07, 2008 3:28 pm

OK, I've asked them through email. Will let you know when I hear something back.

Merilee

Merilee
Posts: 5
Joined: Mon Apr 07, 2008 8:00 am

Re: [Zen Cart] Default Home Page

Postby Merilee » Tue Apr 08, 2008 7:58 am

OK server says this feature is already enabled. I deleted all the text in the .htaccess file to test, renamed the home page to dummy.html and put in the .htaccess "DirectoryIndex dummy.html" It worked. So, there's some other setting in the .htaccess that is causing issues.

I'd like to paste the whole .htaccess here, but it's 944 lines of greek to me. Please help. I'm lost :(

inveo
Inveo Support
Posts: 1281
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Default Home Page

Postby inveo » Tue Apr 08, 2008 2:56 pm

You are correct. My previous suggestion was wrong. Open .htaccess file and find:

Code: Select all

RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3})&zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^currency=([a-zA-Z]{3}) [OR]
RewriteCond %{QUERY_STRING} ^zenid=([a-z0-9]*) [OR]
RewriteCond %{QUERY_STRING} ^
RewriteRule ^$ index.php?main_page=index [L,QSA]


replace with:

Code: Select all

RewriteRule ^$ index.html [L,QSA]

Merilee
Posts: 5
Joined: Mon Apr 07, 2008 8:00 am

Re: [Zen Cart] Default Home Page

Postby Merilee » Wed Apr 09, 2008 5:59 am

OK I was about to cry when I tried it and it didn't work... Until I realized I'd changed the home page to home.html.... changed it back and it worked like a charm. Kudos to you.!!!