Hi,

Originally Posted by
E-Captivate
It was not intended as rude, but if it was taken that way, I apologize. I am only seeking a sound solution for my customer.
Fair enough. I'd been expecting you to e-mail me back to explain more. I rarely take as long to reply as 4 working days. I'd forgotten about your e-mail as it had arrived on a Saturday and I tend to just "flag" e-mails at weekends for the free distributions. Every so often I check to make sure that I haven't missed replying to any "flagged" e-mails. As I was so busy I hadn't carried out that task yet that week or I would have responded sooner. I did respond straight away to your second mail but I can understand that you wanted a quicker response so you can get your client sorted.

Originally Posted by
E-Captivate
So is this module compatible with the page_not_found feature? If not, it would give me some clarity on my issues. Thanks.
I honestly didn't know what you meant by that, I didn't know if you were talking about some Apache 404/error settings or something but I've looked at my own Zen Cart installation and see that there is a "page_not_found" script and a page in the modules/pages folder.
I've never used that before but looking into the problem I can see that Zen Cart automatically loads the index page in init_includes/init_sanitize.php if the main_page variable is not set.
I think it would indeed make more sense for that to go to the page_not_found page so in init_ceon_uri_mapping you should add in a block to set the main_page variable if it isn't set. You can change the following lines (349-350):
PHP Code:
}
} else if (isset($_GET['main_page']) && isset($_SESSION['ceon_uri_mapping_redirected'])) {
to
PHP Code:
} else {
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
header('HTTP/1.1 404 Not Found');
$_GET['main_page'] = 'page_not_found';
}
}
} else if (isset($_GET['main_page']) && isset($_SESSION['ceon_uri_mapping_redirected'])) {
That code doesn't redirect the user but simply brings up the page not found page.. which is the same behaviour Zen Cart uses as standard. Should it instead redirect to the page not found page?
Please let me know what you all think about that and I'll make the code part of 3.2.1 because now that I see what is happening, I think some code should be present, either to display the 404 page or redirect to it.
I'm not sure about the who's online issues.. I'm sure it's something to do with the rewrite rule. I'd need admin access to someone's site to see what's going on as I can't replicate the problem here, it's working fine for me.
All the best...
Conor
Ceon