Quote Originally Posted by Mike_Dean View Post
Hi,

Hoping someone can help as I'm into the 4th hour and no joy on this mod.

I'm working on a new site with a clean install of 1.5.4 on my local server (wamp)

I have installed the mod several times and it all check out fine using the installation check page

I have generated URI mapping on a particular category page and individual product, but I'm getting 404 and 500 errors depending on the following.

If I DON'T add the .htaccess file, I can get to the store front, but I get 404 errors on any of the product category pages.
If I DO install the .htaccess file in either the wamp/www/ folder of the wamp/www/zencart folder I get 500 error when I try an load the sites main page.

This is what the .htaccess file currently looks like

## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/ [NC]
# 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 admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admindemo [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/editors/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/zencart/logs/ [NC]
# Don't rewrite zencart directory
RewriteCond %{REQUEST_URI} !^/zencart/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
# RewriteRule .* index.php [QSA,L]
RewriteRule .* /zencart/index.php [QSA,L]

## END CEON URI MAPPING REWRITE RULE

I have modified the last line of the file to

/index.php
index.php
/zencart/index.php
zencart/index.php.

All to no avail.

The worst part is I have an older version of it working nicely on my old 1.3.9 site !!

Any suggestions as to what I may have done wrong would be greatly appreciated

Many thanks,
Mike
Well, honestly, very little if anything has changed for the .htaccess file requirements through the ZC versions, if anything it is the server or other system changes that may necessitate a change. Therefore, basically if the .htaccess works fine for your 1.3.9 version of ZC, the same basic .htaccess could/should work for ZC 1.5.4... There may be some other factors about your local setup that are causing the issue, also if the .htaccess is placed in wamp/www does your wamp/www/zencart folder also have a .htaccess? (If wamp/www/zencart is your site's root folder for the zencart program, the answer should be that there is no .htaccess in the zencart subdirectory because zencart does not require one for normal operation.) If there is a .htaccess file in the wamp/www/zencart folder, what are its contents? Why is it there? And if so, you may need to incorporate the .htaccess content above into it, but move down a directory (instead of /zencart/ may just be / but also have to use a command at the beginning to indicate the current directory...

I did have to in one case have a .htaccess file in both the sites root as well as the store's root both providing the same general rewrite rule in each directory but a difference in that the subfolder didn't have reference to the subfolder, but as if at the site itself... Removal of the CEON .htaccess code from either caused trouble because the sub-directory had a .htaccess file for other reasons...

But it still could also be setup of the server as well at least without further information.