Quote Originally Posted by conor View Post
That's nothing to do with Ceon URI Mapping, it's the Zen Cart setting for your store in Configuration - Missing Page Check. Set it to Page Not Found.
ceon

Hi Connor,
The store has always been configured to "Page Not Found". After installing URI Mapping though it goes to the index.

If I disable URI mapping a 404 still goes to the index. But there is a rewrite line added by URI mapping to htaccess that seems to do it. If I comment that out I get normal 404 responses.

I am assuming that a RewriteCond should be added to deal with it, but I have no idea what condition to check for

Here's the rewrite rule added by URI mapping that causes the 404's to go to the index.

Code:
## BEGIN CEON URI MAPPING REWRITE RULE

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

## END CEON URI MAPPING REWRITE RULE