I just purchased a website that uses Zen-Cart. Zen Cart was set up to run in the root directory instead of a store directory. When the site was designed, it had an index.html page as the home landing page and then the zen cart shop was called from the top navigation.
I had the CEON URI rewrite module installed on my site to help with SEO and ever since, the index.php page is the first page that comes up when browsing to the site using the root directory.
I've tried multiple different things in the .htaccess file to try and get the index.html file to show up first to no avail. I have made a couple of changes that lets the index.html file show first, but then when I click on the index.php link, it goes back to the root which then goes to index.html and my users can't get to the shopping area.
Anyway, I think there must be another file somewhere that is rewriting index.php to the root. I've searched and can't find anything that is doing it. Is there a way to determine which file is rewriting index.php to the root?
In case it helps, here's my .htaccess file for you to pick apart:
DirectoryIndex index.html index.php index.htm
Options +FollowSymLinks
RewriteEngine On
# Rewrite www.weddedglitz.com to weddedglitz.com (strip the www)
RewriteCond %{HTTP_HOST} ^www.weddedglitz.com$ [NC]
RewriteRule ^(.*)$ http://weddedglitz.com/$1 [R=301,L]
## BEGIN CEON URI MAPPING REWRITE RULE
RewriteEngine On
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite any URIs for some, popular specific file format extensions,
# which are not covered by main file extension condition above
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|h264)$ [NC]
# Don't rewrite any URIs for some specific file format extensions,
# which are not covered by main file extension condition above
# Uncomment the following line to apply this condition! (Remove the # at the start of the next line)
#RewriteCond %{REQUEST_URI} !\.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]
# Don't rewrite index.html
RewriteCond %{REQUEST_URI} !^index.html [NC]
# Don't rewrite index directory
RewriteCond %{REQUEST_URI} !^index.php [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/wgadministration [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite home1 directory
RewriteCond %{REQUEST_URI} !^/home1/ [NC]
# Don't rewrite cgi-bin directory
RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
# Don't rewrite FontViewer directory
RewriteCond %{REQUEST_URI} !^/FontViewer/ [NC]
# Don't rewrite custom directory
RewriteCond %{REQUEST_URI} !^/custom/ [NC]
# Don't rewrite inspiration directory
RewriteCond %{REQUEST_URI} !^/inspiration/ [NC]
# Don't rewrite bmz_cache directory
RewriteCond %{REQUEST_URI} !^/bmz_cache/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
If you want to look at the site to see what I'm talking about, the link is WeddedGlitz.com. Any help would be greatly appreciated.
Thanks,
Lyn Henderson
WeddedGlitz.com
Bookmarks