Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping (SEO)

Ceon URI Mapping (SEO)

Locked

Views: 472,329

Results 1,081 to 1,100 of 2,913
This thread is locked. New replies are disabled.
1 Feb 2010, 7:46 PM
#1081
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Ceon URI Mapping (SEO)

Hi,

simonbbc:

So am I right in thinking that old pages that are linked from external sites will still be handled by the module so that they resolve to correct page???

If they have a "current URI" defined, then yes, the module will automatically redirect to the new URI, with the correct "permanent" redirection header. With links from search engines this should eventually result in the old URIs eventually stop being used, having been replaced with the new URIs.

simonbbc:

that canonical links will be added to the site once this is installed?

That's up to how you structure things, but yes, as standard if you generate URIs for each category/subcategory/product then they'll be arranged in a hierarchy. For existing sites you'll have to update each category/product in the admin but that doesn't take long really. For new sites no work needs to be done at all for products/categories, the URIs are added as you add categories/products. You can read more in the docs, hope that helps for now.

For EZ-Pages you can enter whatever URIs you want, which allows you to struibute them into sections/subsections if desired.

BTW What's the BBC bit in the nick about?

All the best..

Conor
ceon

1 Feb 2010, 8:18 PM
#1082
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

lol it's an old name from when you could only input three characters on the Arcade games... Stood for Bmx British Champion

but now means Simon's Best British Classics....

So if I go and install this into my https://www.simonbbc.com site I guess I will have a fair bit of work to do as I have a bunch of links from external sites and don't want them to be 404 when I install your module...

the only reason I am looking to move away from Sitemap XML is because I am getting duplicate headers and site crawl errors etc... in google webmaster console

1 Feb 2010, 11:52 PM
#1083
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

simonbbc:

lol it's an old name from when you could only input three characters on the Arcade games... Stood for Bmx British Champion

Ahh, get you. Do most machines not still only allow 3 characters or do I only ever end up playing classics the once in a blue moon I ever use an arcade machine? :)

simonbbc:

So if I go and install this into my www.simonbbc.com site I guess I will have a fair bit of work to do as I have a bunch of links from external sites and don't want them to be 404 when I install your module...

You won't get any 404s.. the old links will still work and will remain the same. They'll only redirect to a new static URI if you have entered or generated a new static URI for the category/product/manufacturer/ez-page in question (or added one manually in the db in the case of "other" zen cart pages).

simonbbc:

the only reason I am looking to move away from Sitemap XML is because I am getting duplicate headers and site crawl errors etc... in google webmaster console

I'm afraid I still have much to learn about such things so can't comment with any degree of confidence other than to say I don't see how installing the URI Mapping module could hurt as it has the "correct" form of redirection support built in and doesn't auto-generate URIs for existing URIs unless you ask it to by "updating" URIs.. basically, after its initial installation absolutely nothing on your site will have changed.. you have to go and make changes.. one of the main points behind writing the module initially was to create a module that gave the person configuring the store full control over the URIs, whereas other modules take over the format with programmitic rewrites.

Hope that helps.

All the best..

Conor
ceon

2 Feb 2010, 2:12 AM
#1084
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

conor:

one of the main points behind writing the module initially was to create a module that gave the person configuring the store full control over the URIs, whereas other modules take over the format with programmitic rewrites.

Hope that helps.

All the best..

Conor
ceonAnd besides the fact that your module works with no real issues before or after install, I LOVE the fact that the SHOP OWNER not the program controls how the URIs are created..

2 Feb 2010, 3:22 PM
#1085
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

new2u:

Is there a way to change the home link on the site to direct to / rather than /index.php?main_page=index .... ? I am using the ceon uri remap, but I dont see a way to do this in there... has anyone done this. Google is showing duplicate home pages which I dont want. I only want google to see / not /index.php or /index.php?main_page=index

I have left the main_page field blank and tried using a / neither work. Is this possible?

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

2 Feb 2010, 9:34 PM
#1086
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

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

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/canonical-url-links-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 https://www.simonbbc.com if you can see anything else wrong with some of the diag tools you would use too :P

3 Feb 2010, 12:01 AM
#1087
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi there.

I've installed the mod and think it is great.

The only "problem" I have is that I am using Zen for my webstore and my shop. To run the shop till I have Ollacart installed.

When this mod is enabled I get a 404 Error Page Not Found if I try to access the ollacart screens. Do I need to exclude this add-on and if so how? Ollacart is installed in a separate sub-directory ("/pos") on the shop's top level.

You can see the website at https://www.wargamesheaven.co.uk (mod turned off) and the Ollacart at https://www.wargamesheaven.co.uk/pos (though you wont get more than the login screen for that one).

Obviously when you read this and think "I need to know x,y and z about this site", let me know and I'll send you the info.

cheers
Guy

3 Feb 2010, 12:09 AM
#1088
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

guyhancock:

I've installed the mod and think it is great.

Glad you like the module!

Please read the section of the docs

Adding exceptions to the rule to prevent particular addresses (e.g. Control Panels etc.) being handled by Zen Cart

It should help you fix this.

All the best..

Conor
ceon

3 Feb 2010, 12:17 AM
#1089
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Conor (quick reply dude)

I had added the following line to the .htaccess

Don't rewrite POS directory

RewriteCond %{REQUEST_URI} !^/pos.* [NC]

Is that (a) correct syntax and (b) right? If it is, it doesn't stop the problem.

cheers
Guy

3 Feb 2010, 12:22 AM
#1090
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

guyhancock:

Conor (quick reply dude)

I had added the following line to the .htaccess

Don't rewrite POS directory

RewriteCond %{REQUEST_URI} !^/pos.* [NC]

Is that (a) correct syntax and (b) right? If it is, it doesn't stop the problem.y

If you added that before the RewriteRule bit then that opens up the /pos directory for use without any attempt to map it.

I'm afraid that if that exclusion alone doesn't work then I can't say what exact exclusions would.. it might be best to ask the makers of the other software you are using what a blanket htaccess rewrite rule (such as that used by URI mapping) needs to have excluded to let their software run.

I hope you can understand that I can't support 3rd party software here, only Zen Cart issues. I imagine you should be able to get this sorted easily enough though - good luck! :)

All the best..

Conor
ceon

3 Feb 2010, 12:27 AM
#1091
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

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

3 Feb 2010, 12:34 AM
#1092
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

guyhancock:

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 Feb 2010, 12:35 AM
#1093
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

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

4 Feb 2010, 5:24 AM
#1094
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

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

4 Feb 2010, 5:29 AM
#1095
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

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/showpost.php?p=422467&postcount=18

simonbbc:

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/canonical-url-links-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 https://www.simonbbc.com if you can see anything else wrong with some of the diag tools you would use too :P

4 Feb 2010, 12:33 PM
#1096
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

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.......:blush:

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]

4 Feb 2010, 9:35 PM
#1097
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

new2u:

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/showpost.php?p=422467&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...

4 Feb 2010, 10:13 PM
#1098
new2u avatar

new2u

Zen Follower

Join Date:
Sep 2009
Posts:
186
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

simonbbc:

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

5 Feb 2010, 4:59 AM
#1099
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

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

5 Feb 2010, 11:55 AM
#1100
simonbbc avatar

simonbbc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

new2u:

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?