[Zen Cart] Default Home Page
[Zen Cart] Default Home Page
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?
Re: [Zen Cart] Default Home Page
Please try to place following code to the beginning of .htaccess file:
Please also make sure your .htaccess file keep your changes.
Code: Select all
DirectoryIndex index.html index.php
Please also make sure your .htaccess file keep your changes.
Re: [Zen Cart] Default Home Page
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 /
Re: [Zen Cart] Default Home Page
Pleas try to ask you host for enabling DirectoryIndex directive overriding in .htaccess.
Re: [Zen Cart] Default Home Page
OK, I've asked them through email. Will let you know when I hear something back.
Merilee
Merilee
Re: [Zen Cart] Default Home Page
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
I'd like to paste the whole .htaccess here, but it's 944 lines of greek to me. Please help. I'm lost

Re: [Zen Cart] Default Home Page
You are correct. My previous suggestion was wrong. Open .htaccess file and find:
replace with:
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]
Re: [Zen Cart] Default Home Page
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.!!!