Page 110 of 291 FirstFirst ... 1060100108109110111112120160210 ... LastLast
Results 1,091 to 1,100 of 2907
  1. #1091
    Join Date
    Jun 2008
    Location
    Brighton, Britain
    Posts
    47
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Conor

    First off, yup fully understand about third party stuff.

    My .htaccess looks like this

    <files php.ini>
    Deny from all
    </files>

    RewriteEngine On

    # 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} !^/WHshop@11IA_Admin.* [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors.* [NC]
    # Don't rewrite POS directory
    RewriteCond %{REQUEST_URI} !^/pos.* [NC]
    # Don't rewrite cPanel directories
    RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
    RewriteCond %{REQUEST_URI} !/frontend.* [NC]
    # Handle all other URIs using Zen Cart (index.php)
    RewriteRule (.*) index.php?%{QUERY_STRING} [L]

    From your message, are you saying that I have the right code but in the wrong place (i.e. it should appear earlier in the file)?

    cheers
    Guy
    Here's my shop: www.wargamesheaven.co.uk

  2. #1092
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Ceon URI Mapping (SEO)

    Hi,

    Quote Originally Posted by guyhancock View Post
    From your message, are you saying that I have the right code but in the wrong place (i.e. it should appear earlier in the file)?
    No, that was a possibility but you have the exclusion in the right place.. which means that's not the only exclusion necessary.

    All the best..

    Conor
    ceon

  3. #1093
    Join Date
    Jun 2008
    Location
    Brighton, Britain
    Posts
    47
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Ok, I'll get on to the Ollacart guys (if they can help I'll post here in case anyone else needs it).

    cheers
    Guy
    Here's my shop: www.wargamesheaven.co.uk

  4. #1094
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by conor View Post
    Hi,



    I happened to be looking into URI issues for some of my new software (nothing to do with Zen Cart) and it brought up the subject of canonical URIs.. you might want to have a read about them (one link is http://yoast.com/wordpress/canonical/ ).

    You could update your html_header.php file to check if the current page is the home page and if so output the canonical <link> tag for the page.. that should make google see / /index.php and /index.php?main_page=index as the same page, negating the problem you were having.

    Just thought I'd mention it while it was fresh in my mind!

    All the best..

    Conor
    ceon
    You're Awesome Conor this totally worked. Just created a php file in my javascript and added the canonical and it works!

    I also got the redirects to work, however if I have over the home.. it still shows the /index.php?main_page=index even though I now have it directing to /

    Time for some more digging.. Love this mod. You notes on editing php my admin was invaluable. Thanks

  5. #1095
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    You will want to just add it to your jscript and not to the header.php file... See this article by Dr. Byte
    http://www.zen-cart.com/forum/showpo...7&postcount=18


    Quote Originally Posted by simonbbc View Post
    It's all starting to become alot clearer however... when I try to put the canonical code into my html_header.php file I can't ever find it in my templates directory, I only find tpl_header.php which I guess is the same file but can't insert the code without causing the site to display a pure white page....

    This is my current code:

    <?php
    /**
    * Atheme Template - tpl_header.php
    *
    * @package templateSystem
    * @copyright Copyright 2007 iChoze Internet Solutions http://ichoze.com
    * @copyright Portions Copyright 2003-2006 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: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>

    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>


    <div id="headerWrapper">
    <!--bof-branding display-->
    <div id="logoWrapper">
    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '') { ?>
    <div id="taglineWrapper">
    <?php
    if (HEADER_SALES_TEXT != '') {
    ?>
    <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
    <?php
    }
    ?>
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> |</li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> |</li>
    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_SHIPPING; ?></a></li>
    <?php } } ?>

    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li> | <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    </ul>
    </div>
    </div>
    <!--eof-navigation display-->
    </div>
    <?php } // no HEADER_SALES_TEXT ?>
    </div>
    <br class="clearBoth" />
    <!--eof-branding display-->
    <!--eof-header logo and navigation display-->
    </div>
    <?php
    if (HEADER_DROP_SWITCH == '1'){
    require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');
    }else{
    require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');
    }?>
    <div id="searchCartBarWrapper">
    <div id="searchCartBar">
    <div id="cartContent">
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo $_SESSION['cart']->count_contents() . HEADER_TITLE_CCONTENTS; ?></a>
    </div>
    <div id="altLinks">
    <a href="<?php echo zen_href_link(FILENAME_SPECIALS, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_SPECIALS;?></a> |
    <a href="<?php echo zen_href_link(FILENAME_FEATURED_PRODUCTS, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_FEATURED;?></a> |
    <a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL, '', 'NONSSL'); ?>"><?php echo HEADER_SUB_ALLPRODUCTS;?></a>
    </div>
    <?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?>

    </div>
    <?php
    if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
    require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php');
    }?><div class="clearBoth"></div>
    </div>

    but here http://www.jasonjgreen.com/blog/cano...-for-zen-cart/

    mentions putting this

    <!– Begin SE Canonical –>
    <link rel=”canonical” href= <?php
    $original_url = HTTP_SERVER . $_SERVER[’REQUEST_URI’];
    $split_url = explode(’?', $original_url);
    $no_querystring_url = $split_url[0];
    echo $no_querystring_url; ?> />
    <!– End SE Canonical –>

    Here

    Simply copy and paste the script right after the closing title tag (</title>) of your html_header.php file (located in your Common folder of your custom template folder in your Zen Cart installation).

    So I fall down at this point, am I missing the right place to drop this code or am I in the wrong file all together

    Thanks for your help and I will certainly make these changes tomorrow and come back for any further help left.....

    For what is a hugely important amendement to make to any site that wants to be somewhere worth while you are clearly leading the way on this topic...

    Good on you

    my site is www.simonbbc.com if you can see anything else wrong with some of the diag tools you would use too

  6. #1096
    Join Date
    Apr 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Sound I'm getting somewhere now, thanks for all of this help..

    I have installed the files etc... and set the tables up and now come to the .htaccess file

    My admin folder is called "this admin" and my shop folder is "automotiveshop" but when I modify the code I get an Internal Server error.......

    So is this right ?

    # ONLY rewrite URIs beginning with /shop/
    RewriteCond %{REQUEST_URI} ^/automotiveshop/.* [NC]
    # 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} !^/automotiveshop/this admin.* [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/automotiveshop/editors.* [NC]
    # Don't rewrite cPanel directories
    RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
    RewriteCond %{REQUEST_URI} !/frontend.* [NC]
    # Handle all other URIs using Zen Cart (index.php)
    RewriteRule (.*) index.php?%{QUERY_STRING} [L]

  7. #1097
    Join Date
    Apr 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by new2u View Post
    You will want to just add it to your jscript and not to the header.php file... See this article by Dr. Byte
    http://www.zen-cart.com/forum/showpo...7&postcount=18
    Thanks for your help but I have entered that into a file in the custom emplate jscript folder in a file called jscipt_canonical.php and I don't see the canonical script in the source code when viewing the code so guess it's not working...

  8. #1098
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by simonbbc View Post
    Thanks for your help but I have entered that into a file in the custom emplate jscript folder in a file called jscipt_canonical.php and I don't see the canonical script in the source code when viewing the code so guess it's not working...
    I had the same issue. I just added another line to an existing one that was working

  9. #1099
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Hello,

    Problem here. We have a category that has the same name as the manufacturer (e.g. Apple). We have the manufacturer sidebox turned on and when viewing the Apple manufacturer, instead of showing all the items from this manufacturer, it only shows the products in the Apple category. Turned off URI mapping and everything works. Any fix for this?

    Thanks

  10. #1100
    Join Date
    Apr 2009
    Posts
    40
    Plugin Contributions
    0

    Default Re: Ceon URI Mapping (SEO)

    Quote Originally Posted by new2u View Post
    I had the same issue. I just added another line to an existing one that was working
    I only have this one

    <script type="text/javascript">
    var Hoverbox = {
    Version: '3.0_rc2',
    options: {
    backgroundColor: '<?php if(defined('HOVERBOX_BACKGROUND_COLOR')){echo HOVERBOX_BACKGROUND_COLOR;}else{echo '#ffffff';}?>',
    border: <?php if(defined('HOVERBOX_BORDER_SIZE')){echo HOVERBOX_BORDER_SIZE;}else{echo '12';}?>,
    buttons: { opacity: { normal: <?php if(defined('HOVERBOX_CLOSE_NORMAL')){echo HOVERBOX_CLOSE_NORMAL;}else{echo '0.65';}?>, hover: <?php if(defined('HOVERBOX_CLOSE_HOVER')){echo HOVERBOX_CLOSE_HOVER;}else{echo '1';}?> } },
    cyclic: <?php if(defined('HOVERBOX_END_BEG')){echo HOVERBOX_END_BEG;}else{echo 'false';}?>,
    images: '<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images'). '/hoverbox';?>/',
    imgNumberTemplate: '<?php if(defined('HOVERBOX_IMG_NUMBER')){echo HOVERBOX_IMG_NUMBER;}else{echo 'Image #{position} of #{total}';}?>',
    overlay: {
    background: '<?php if(defined('HOVERBOX_OVERLAY_BACKGROUND')){echo HOVERBOX_OVERLAY_BACKGROUND;}else{echo '#000000';}?>',
    opacity: <?php if(defined('HOVERBOX_OVERLAY_OPACITY')){echo HOVERBOX_OVERLAY_OPACITY;}else{echo '0.85';}?>,
    display: <?php if(defined('HOVERBOX_OVERLAY_ENABLE')){echo HOVERBOX_OVERLAY_ENABLE;}else{echo 'true';}?>
    },
    preloadHover: true,
    radius: <?php if(defined('HOVERBOX_CORNER_RADIUS')){echo HOVERBOX_CORNER_RADIUS;}else{echo '5';}?>,
    resizeDuration: <?php if(defined('HOVERBOX_RESIZE_DURATION')){echo HOVERBOX_RESIZE_DURATION;}else{echo '1';}?>,
    slideshow: { delay: <?php if(defined('HOVERBOX_SLIDE_DELAY')){echo HOVERBOX_SLIDE_DELAY;}else{echo '5';}?>, display: <?php if(defined('HOVERBOX_SHOW_SLIDE')){echo HOVERBOX_SHOW_SLIDE;}else{echo 'true';}?> },
    titleSplit: '::',
    transition: function(pos) {
    return ((pos/=0.5) < 1 ? 0.5 * Math.pow(pos, 4) :
    -0.5 * ((pos-=2) * Math.pow(pos,3) - 2));
    },
    viewport: <?php if(defined('HOVERBOX_SMART_RESIZE')){echo HOVERBOX_SMART_RESIZE;}else{echo 'true';}?>,
    zIndex: <?php if(defined('HOVERBOX_ZINDEX')){echo HOVERBOX_ZINDEX;}else{echo '1';}?>,
    closeDimensions: {
    large: { width: 85, height: 22 },
    small: { width: 32, height: 22 },
    innertop: { width: 22, height: 22 },
    topclose: { width: 22, height: 18 }
    },
    defaultOptions : {
    },
    sideDimensions: { width: 16, height: 22 }
    },
    typeExtensions: {
    image: 'bmp gif jpeg jpg png'
    }
    };

    </script>

    and putting it in there doesn't do anything but make my products pages blank.... any other ideas?

 

 

Similar Threads

  1. Simple SEO URL, Ultimate SEO URLs, Ceon URI Mapping SEO
    By pizza392 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 21 Jan 2015, 10:49 AM
  2. Ceon uri mapping vs Simple SEO
    By crixus in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2014, 04:41 AM
  3. v151 Ceon URI Mapping (SEO) Issues?
    By yisou in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Jul 2013, 12:06 PM
  4. v151 Ceon URI Mapping (SEO) installation problem.
    By jmac2020 in forum General Questions
    Replies: 1
    Last Post: 23 Oct 2012, 01:06 PM
  5. Ceon URI Mapping (SEO) How to install?
    By jackfitz in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 28 Apr 2010, 12:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR