Re: No longer receiving admin order notification emails.
Quote:
Originally Posted by
conor
Hi Bruce,
Maybe check your e-mail settings?
At least enable E-mail Archiving so you can see that the e-mails are being sent. Maybe it's a simple spam filter issue.
ceon
Thanks! You solved it. Google Mail spam folder was the issue. I even had a filter set up to put these messages in a separate inbox. Ceon URI Mapping 4.0.8 worked on first install! I am going straight to the Ceon website to make a donation for the AWESOME addon.
Cheers,
Bruce
Re: Ceon URI Mapping v4.x
Hi,
Quote:
Originally Posted by
bigsy85
Yes i'm using the latest version, the problem is mydomain.com/blog/index.php works but not /blog, somehow the mod is still trying to rewrite this, wheras I'm just wanting to use a htaccess for this.
You need to make sure you've correctly added the following exclusion condition:
Code:
RewriteCond %{REQUEST_URI} !^/blog [NC]
That will stop anything with /blog at the start from being handled by Ceon URI Mapping.
All the best...
Conor
ceon
Re: Ceon URI Mapping v4.x
Hi Connor,
Thats been added which is why I'm puzzeled.
##############################___
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
# Don’t rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog.* [NC]
RewriteCond %{REQUEST_URI} !^/wp.* [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) /index.php?%{QUERY_STRING} [L]
# Do rewrite blog directory
#RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
########################################__
Any ideas?
Re: Ceon URI Mapping v4.x
Also worth mentioning if I create a link in the db ceon_uri_mapping for main_page=blog the /blog works but obviously subsequent blog link dont.
Re: Ceon URI Mapping v4.x
Hi,
This doesn't look right to me:
RewriteRule ^blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
If your rewrite software is checking against the path including the starting slash, the above will never match. Maybe try:
RewriteRule ^/blog(.*)$ /index.php?main_page=blog&$1 [E=VAR1:$1,QSA,L]
The "^" means "start of", and "$" means "end of".
Actually, I just realised all this is mostly irrelevant.. why are you rewriting to index.php?main_page??!! That is just you manually calling Zen Cart again then!
You need to have the rewrite rule for the blog actually use the blog PHP file, not Zen Cart's index.php!!
The instructions you were given for integrating appear to be wrong.
All the best...
Conor
ceon
Re: Ceon URI Mapping v4.x
Hi Conor,
Its calling main_page=blog as this is integrated wordpress into zencart, it works perfect with the rewrite above but only when ceon is disabled.
The aim is to have the blog appear seemliness integrated within ZenCart.
Re: Ceon URI Mapping v4.x
Hi,
Quote:
Originally Posted by
bigsy85
Its calling main_page=blog as this is integrated wordpress into zencart, it works perfect with the rewrite above but only when ceon is disabled.
The aim is to have the blog appear seemliness integrated within ZenCart.
Then the integration software simply doesn't work "properly".. change it so that instead of calling index.php?main_page=blog, it calls a file like blog.php and have the blog.php file load the Zen Cart initsystem if necessary. Piggy backing things as above is just messy.
As this is third party stuff I'm afraid that's as much help as I can give.
Hope you can get this sorted.
All the best..
Conor
ceon
Re: Ceon URI Mapping v4.x
Thanks Conor I think thats the route I will take, one last idea is hard code main_page=blog to be excluded as it seems the exclusion list isn't taking this into account
Re: Ceon URI Mapping v4.x
Hi,
Quote:
Originally Posted by
conor
change it so that instead of calling index.php?main_page=blog, it calls a file like blog.php and have the blog.php file load the Zen Cart initsystem if necessary. Piggy backing things as above is just messy.
An alternative may be to edit includes/classes/CeonURIMappingHandlerBase.php and have it check to see if you are calling Zen Cart via a /blog URI:
After
PHP Code:
if (!$this->_normaliseServerEnvironment()) {
// Couldn't establish a reasonable value for PHP_SELF
}
Add
PHP Code:
if (strpos($_SERVER['REQUEST_URI'], 'blog') !== false) {
return;
}
All the best..
Conor
ceon
Re: Ceon URI Mapping v4.x
Prefect that worked. Thanks alot Conor!