Re: Ceon URI Mapping v4.x
Hi,
Quote:
Originally Posted by
DivaVocals
It was easy to say because it's true..
Well thanks once again/more for the nice comments, it's very nice of you to say such things and I'm very glad I can help people like yourself with software you want. :)
Quote:
Originally Posted by
DivaVocals
Heck one of these add-ons even interfered with a home page SLIDESHOW!! (Say what???)
Actually, that was probably an issue with some slideshow module not able to cope with static URIs, but yeah, hopefully Ceon URI Mapping won't interfere with other modules. :)
Going to try and find some time for coding rather than posting/e-mailing, so I'll leave it there for now and just say "have a good evening!" :)
All the best..
Conor
ceon
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
conor
Actually, that was probably an issue with some slideshow module not able to cope with static URIs, but yeah, hopefully Ceon URI Mapping won't interfere with other modules. :)
It was simple Flash slideshow embedded on the front page vs a slideshow module.. That particular site is the one that drove me to your module in the first place.. The odd behavior on the Flash slideshow was maddeningly annoying..
Re: Ceon URI Mapping v4.x
Just wanted to drop in here and publicly thank Conor for being so helpful in my efforts to get this installed correctly on my site. Above and beyond. Super appreciated. I also took advantage of the free product here: http://ceon.net/software/business/zen-cart/uri-mapping. Expect my donation!
2 Attachment(s)
Re: Ceon URI Mapping v4.x
Hi Conor (and everyone)
Google Wenmaster Tools is reporting I have many duplicates. I have posted this in the Search Engine forum but thought after re-reading the info I would check in here also. I'm just wondering after reading the following 'IF' I have a problem with my instal?
FROM THE INFO PAGE:Canonical URIs
•Any page with a static URI automatically has a canonical URI tag added to the page's header. This minimises “duplicate content” reports as it tells the search engines that multiple “pages” should be treated as one.
•For example, instead of the search engine thinking that /all-products?disp_order=1 is a different page from /all-products?disp_order=3, Ceon URI Mapping lets it know that the page's “real” URI is just /all-products and that these other URIs are just variations for the same page.
Here is the two reports with some opened....
Attachment 11309 Attachment 11310
My .htaccess seems shorter than that given at install
## 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} !^/nervecentre [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors/ [NC]
# Don't rewrite min directory
RewriteCond %{REQUEST_URI} !^/min/ [NC]
# Don't rewrite mailhive directory
RewriteCond %{REQUEST_URI} !^/mailhive/ [NC]
# Don't rewrite photopen directory
RewriteCond %{REQUEST_URI} !^/photopen/ [NC]
# Don't rewrite markets directory
RewriteCond %{REQUEST_URI} !^/markets/ [NC]
# Don't rewrite facebook directory
RewriteCond %{REQUEST_URI} !^/facebook/ [NC]
# Don't rewrite googlecheckout directory
RewriteCond %{REQUEST_URI} !^/googlecheckout/ [NC]
# Don't rewrite home directory
RewriteCond %{REQUEST_URI} !^/home/ [NC]
# Don't rewrite gifts1 directory
RewriteCond %{REQUEST_URI} !^/gifts1/ [NC]
# Don't rewrite cgi-bin directory
RewriteCond %{REQUEST_URI} !^/cgi-bin/ [NC]
# Don't rewrite zippo directory
RewriteCond %{REQUEST_URI} !^/zippo/ [NC]
# Don't rewrite bmz_cache directory
RewriteCond %{REQUEST_URI} !^/bmz_cache/ [NC]
# Don't rewrite spc2 directory
RewriteCond %{REQUEST_URI} !^/spc2/ [NC]
# Don't rewrite tankards directory
RewriteCond %{REQUEST_URI} !^/tankards/ [NC]
# Don't rewrite myfiles directory
RewriteCond %{REQUEST_URI} !^/myfiles/ [NC]
# Don't rewrite feed directory
RewriteCond %{REQUEST_URI} !^/feed/ [NC]
# Don't rewrite links-images directory
RewriteCond %{REQUEST_URI} !^/links-images/ [NC]
# Don't rewrite engrave directory
RewriteCond %{REQUEST_URI} !^/engrave/ [NC]
# Don't rewrite fonts directory
RewriteCond %{REQUEST_URI} !^/fonts/ [NC]
# Don't rewrite card directory
RewriteCond %{REQUEST_URI} !^/card/ [NC]
# Don't rewrite webpics directory
RewriteCond %{REQUEST_URI} !^/webpics/ [NC]
# Don't rewrite spc directory
RewriteCond %{REQUEST_URI} !^/spc/ [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* index.php [QSA,L]
## END CEON URI MAPPING REWRITE RULE
Re: Ceon URI Mapping v4.x
Hi,
Quote:
Originally Posted by
Rizla
Google Wenmaster Tools is reporting I have many duplicates. I have posted this in the Search Engine forum but thought after re-reading the info I would check in here also. I'm just wondering after reading the following 'IF' I have a problem with my instal?
I found your website and took a look and the canonical tag is there in the header, so everything looks fine. Did you recently just sort out any canonical tag problems in the header file (html_header.php)?
If so it may take time for google to stop seeing filtered pages as duplicates.
I can't see any reason why it would see duplicate tags with the canonical tag in place as it is.
All the best...
Conor
ceon
Re: Ceon URI Mapping v4.x
Hi Conor
Thanks for taking the time to look for me. The only change I remember making to html_header.php was to lines 33 & 34 and they are now:
-----------------------------------------
<meta name="author" content="The Personalised Touch™ Team and others" />
<meta name="generator" content="shopping for engraved gifts by The Personalised Touch™, http://www.thepersonalisedtouch.com eCommerce" />
-----------------------------------------
The page code follows:
<?php
/**
* Common Template
*
* outputs the html header. i,e, everything that comes before the \</head\> tag <br />
*
* @package templateSystem
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: html_header.php 15761 2010-03-31 19:31:27Z drbyte $
*/
/**
* load the module for generating page meta-tags
*/
require(DIR_WS_MODULES . zen_get_module_directory('meta_tags.php'));
/**
* output main page HEAD tag and related headers/meta-tags, etc
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
<!-- Engraved Gifts - Personalised Gifts - Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'en-GB'}
</script>
<title><?php echo META_TAG_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="The Personalised Touch™ Team and others" />
<meta name="generator" content="shopping for engraved gifts by The Personalised Touch™, http://www.thepersonalisedtouch.com eCommerce" />
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?>
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
<link rel="canonical" href="<?php echo $canonicalLink; ?>" />
<?php } ?>
<?php
$jscript_files_to_load = $css_files_to_load = array();
/**
* load all template-specific stylesheets, named like "style*.css", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css');
$load_order = -300;
while(list ($key, $value) = each($directory_array)) {
$css_files_to_load[$value] = $load_order++;
}
/**
* load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza.
*/
$manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : '';
$tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : '';
$tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base;
if ($current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename = $current_page_base . (int)$ezpage_id;
$sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',
'/' . $tmp_pagename,
'/' . $_SESSION['language'] . '_' . $tmp_pagename,
'/c_' . $cPath,
'/' . $_SESSION['language'] . '_c_' . $cPath,
'/m_' . $manufacturers_id,
'/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,
'/p_' . $tmp_products_id,
'/' . $_SESSION['language'] . '_p_' . $tmp_products_id
);
$load_order = -200;
while(list ($key, $value) = each($sheets_array)) {
//echo "<!--looking for: $value-->\n";
$perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css';
if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = $load_order++;
}
/**
* load printer-friendly stylesheets -- named like "print*.css", alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css');
sort($directory_array);
while(list ($key, $value) = each($directory_array)) {
echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
}
if (file_exists(DIR_WS_CLASSES . 'browser.php')) {
include(DIR_WS_CLASSES . 'browser.php');
$browser = new _Browser();
$browser_name = preg_replace("/[^a-zA-Z0-9s]/", "-", strtolower($browser->getBrowser()));
$browser_version = floor($browser->getVersion());
// this is to make it compatible with the other ie css hack
if ($browser->getBrowser() == $browser->BROWSER_IE) {
$browser_name = 'ie';
}
// get the browser specific files
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), "/^{$browser_name}-/", '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), "/^{$browser_name}-/", '.js');
$load_order = -100;
while(list ($key, $value) = each($directory_array )) {
$css_files_to_load[$value] = $load_order++;
}
$load_order = -500;
while(list ($key, $value) = each($js_directory_array )) {
$jscript_files_to_load[$value] = $load_order++;
}
// get the version specific files
$directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), "/^{$browser_name}{$browser_version}-/", '.css');
$js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), "/^{$browser_name}{$browser_version}-/", '.js');
$load_order = -100;
while(list ($key, $value) = each($directory_array )) {
$css_files_to_load[$value] = $load_order++;
}
$load_order = -500;
while(list ($key, $value) = each($js_directory_array )) {
$jscript_files_to_load[$value] = $load_order++;
}
}
/**
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js');
$load_order = -400;
while(list ($key, $value) = each($directory_array)) {
$jscript_files_to_load[$value] = $load_order++;
}
/**
* load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically
*/
$directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js');
$load_order = -300;
while(list ($key, $value) = each($directory_array)) {
$jscript_files_to_load["$page_directory/$value"] = $load_order++;
}
/**
* load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically
*/
$directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php');
$load_order = -200;
while(list ($key, $value) = each($directory_array)) {
/**
* include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
$jscript_files_to_load[$value] = $load_order++;
}
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
*/
$directory_array = $template->get_template_part($page_directory, '/^jscript_/');
$load_order = -100;
while(list ($key, $value) = each($directory_array)) {
/**
* include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
$jscript_files_to_load["$page_directory/$value"] = $load_order++;
}
$files = loadCssJsFiles($css_files_to_load, $jscript_files_to_load);
foreach($files['css'] as $file)
if($file['include']) include($file['string']);
else echo $file['string'];
foreach($files['js'] as $file)
if($file['include']) include($file['string']);
else echo $file['string'];
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
?>
<?php
?>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.thepersonalisedtouch.com/piwik/" :
"http://www.thepersonalisedtouch.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="piwik/piwik.php?idsite=1" style="border:0" alt="" />
</p></noscript>
<!-- End Piwik Tracking Code -->
</head>
<?php // NOTE: Blank line following is intended: ?>
Re: Ceon URI Mapping v4.x
Hi,
That file is fine and as I said, your site has canonical links.
To be honest I think the answer to this is to ignore the duplicate descriptions section.. the only other option is to go through all of your products and add in unique descriptions for the review pages, write a review pages... sounds like a waste of time to me.
All the best..
Conor
ceon
Re: Ceon URI Mapping v4.x
Ok Conor.. Thanks for that. I will stop worrying
Re: Ceon URI Mapping v4.x
Urgent Help please !
I have installed version 4.4.1 and only with Internet Explorer a have a 404 problem movnig navigating from categories to menu informations links :
PLease try to navigate first on : http://ducashop.ro/ducashop/placate-...ri-placate-aur and after on http://ducashop.ro/ducashop/index.ph...age=conditions using IE .
Re: Ceon URI Mapping v4.x
Hello I was wandering if someone could help me please
I installed this mod and the rewrite rules arent working
could someone helo me here please
thamnk yoiu