When I added the following code to the .htaccess file in my zencart directory, it worked for me.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /zencart directory/index.php [QSA,L]
When I added the following code to the .htaccess file in my zencart directory, it worked for me.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /zencart directory/index.php [QSA,L]
That is one possible solution/method to apply, though it is a bit more server intensive because the attempted file(s) in the path need to be tested against the contents of the server to see if the file/directory does or does not exist. Although there shouldn't really be a space as part of the resolving url (ie. In /zencart directory/ this should be a complete word or phrase like /zencart_directory/ instead).
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Regarding the generation of the canonical url.
ZC vanilla: <link rel="canonical" href="https://DOMAIN/SUBDIR/">
CEON URI: <link rel="canonical" href="https://DOMAIN/SUBDIR">
So what!
Well, while reinventing code for structured data/og tags for facebook, I found that re-using this url in the og:url tag was failing in the CEON case (resulting in facebook not finding anything on the home page, using the opengraph debugger) due that missing trailing slash.
Looking in class.CEONUriMappingHandlerBase.php I find:
While this does remove the trailing slash, I don't see any exclusion for the shop root/home page.// Remove any trailing slash(es) from the canonical URI, unless the URI is the root of the site
while (strlen($ceon_uri_mapping_canonical_uri) > 1 &&
substr($ceon_uri_mapping_canonical_uri, -1) == '/') {
$ceon_uri_mapping_canonical_uri =
substr($ceon_uri_mapping_canonical_uri, 0, strlen($ceon_uri_mapping_canonical_uri) - 1);
}
For the moment I have changed it to this:
and it has cured this particular issue.// Remove any trailing slash(es) from the canonical URI, unless the URI is the root of the site
while ($this_is_home_page && strlen($ceon_uri_mapping_canonical_uri) > 1 &&
substr($ceon_uri_mapping_canonical_uri, -1) == '/') {
$ceon_uri_mapping_canonical_uri =
substr($ceon_uri_mapping_canonical_uri, 0, strlen($ceon_uri_mapping_canonical_uri) - 1);
}
I can see this being another one of my monologs...
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...
So shouldn't the note above that code also be modified? Only remove trailing slashes on the home page? Currently as provided it only removes the trailing slash when on the home page and not on any other page whereas before it described that the trailing slash would be removed from all pages but the homepage, though it didn't specifically remove/account for the page being the homepage...
How does the change affect linked product if any by leaving the trailing slash followed by the '?' and master category?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I have the News Box Manager installed on our site. Is there a way of integrating it with "Ceon URI Mapping" so that we can have for example:instead ofCode:https://www.welsh-lovespoons.co.uk/news/lovespoons-bookletThanks for any advice.Code:https://www.welsh-lovespoons.co.uk/index.php?main_page=more_news&news_id=2
This type of action is covered in the documentation (at least it was way back in version 4.4.1) See section 10 of the configuration area. ie: _docs/sections/configuration.html#uri-other-zen-cart-pages
More than likely you will want to apply the second method because of the news_id parameter. If unable to find that information in the docs or unable to understand how to apply it, then please come back with more information about what has been attempted and what is not understood.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Very good module
I installed Ceon URI Mapping v4.x But my site is in Bulgarian and ignore the Cyrillic alphabet in generating url ....
I have a 9000 product there any option to generate automatically ie whole catalog ..
Version"1.5.5a
https://hopshop.bg Auto Shop Online - Bulgariq
The problem with Cyrillic resolved, but I can not generate the entire catalog automatically ...
https://hopshop.bg Auto Shop Online - Bulgariq
The module will not do this, there was a commercial (paid for) module from Ceon that would generate for existing URL's. I believe that someone who posted a couple of posts above has a module/tool that combines Ceon with Easy Populate if you're not able to purchase the original Ceon module.
Bookmarks