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

Ceon URI Mapping (SEO)

Locked

Views: 472,097

Results 201 to 220 of 2,913
This thread is locked. New replies are disabled.
30 Apr 2009, 22:15
#201
conor avatar

conor

Passed

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

Ceon URI Mapping (SEO)

Hi,

Mickmo68:

The mod works great.

Glad you like it!

Mickmo68:

The only problem I am having is that the mysite.com/index.php and the mysite.com/ are both being indexed by Google and they are the same, hence, duplicate content. This is not too good for SEO. Is there a way to 301 the /index.php to the / page? Thank you in advance.

I think I'm going to add a default mapping to the next version of the module to do just this. Here's how you can do it manually:

Add an extra record to the URI mapping table:

uri:

/

language_id:

1

main_page:

index

Leave the db_id etc as null, using the NOW() function for date_added

This will redirect the index.php?main_page=index to / and will also cause Zen Cart to use / as the link instead of index.php?main_page=index

For more information please read the configuration section of the documentation. I'm in the middle of moving out so I won't be around much to answer any questions over the next few weeks!

All the best...

Conor
Ceon

01 May 2009, 11:56
#202
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,
Thank you for the fast reply. I am afraid you are writing way above my head. I'm not sure how or where to > Add an extra record to the URI mapping table:

uri:

/

language_id:

1

main_page:

index

Leave the db_id etc as null, using the NOW() function for date_added

Take your time please. Moving can be very stressful and time consuming. When you get a chance to respond (few weeks is fine) I will appreciate it.

01 May 2009, 12:23
#203
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Mickmo68:

Thank you for the fast reply. I am afraid you are writing way above my head. I'm not sure how or where to

No problem. Read the section of the manual: "Specifying the current URI Mapping for any other Zen Cart page" and those instructions should be fine, it's really very easy indeed if you've ever used "PHPMyAdmin" before.

Mickmo68:

Take your time please. Moving can be very stressful and time consuming. When you get a chance to respond (few weeks is fine) I will appreciate it.

What do you want to know? You haven't said anything other than "I don't know how to do it"! :)

By the way, if you are finding that your site has any URIs "index.php" and not" index.php?main_page=index" then you should fix the links on your site that link to index.php.

No Zen Cart links use just "index.php", they always have "?main_page=index" added to the end, which is what my prevoius post and the information in the above section of the documentation help you redirect to /.

If any of the links on your site are to "index.php" you will have to edit the HTML to change them to "/", these must be links you hard-coded in somewhere (in the template maybe?).

Thanks for the comments about moving, I don't find it stressful at all, hugely time-consuming yes, but not stressful! It's supporting these modules that can be stressful! I won't be doing much of that for two weeks so I'm just excited to be moving things about, picking things to put here and there etc.! :)

All the best...

Conor

02 May 2009, 23:29
#204
doubleo2 avatar

doubleo2

New Zenner

Join Date:
May 2009
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Let me start by expressing my gratitude. This module is amazing and extremely well documented. I could effuse praise for hours/pages but nobody would have time to read it.

I have the module installed and all redirect are working correctly, except one type

index.php?main_page=products_all&disp_order=X

redirects to

all-products?main_page=products_all&disp_order=X

which results in an infinite redirect loop instead of

all-products?disp_order=X

which is what it should redirect to according to the documentation. The same thing happens for all the redirects i set up manually in the db.

I set up each direct by specifying the uri, setting the language_id and current_uri values to 1, supplying the respective main_page value and using NOW for date_added.

Any ideas?

04 May 2009, 14:04
#205
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

doubleo2:

Let me start by expressing my gratitude. This module is amazing and extremely well documented. I could effuse praise for hours/pages but nobody would have time to read it.

Thanks very much indeed for the nice comments! I do try! ;)

doubleo2:

which results in an infinite redirect loop instead of

Someone else e-mailed me about the exact same issue recently. You have done everything correctly but this is a bug in the module. I've fixed it for the next version of the module.

I've just moved out and do not yet have "proper" internet access so I'm afraid it will be a few days until I can upload the new version. Until I do please change the "current" value for that URI mapping to 0 (therefore disabling it). Once you upgrade to the new version you can re-enable the mapping.

All the best...

Conor
Ceon

06 May 2009, 09:45
#206
goldlion avatar

goldlion

New Zenner

Join Date:
Dec 2008
Posts:
23
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Dear Conor,

Thanks for all your time and effort you've put in this mod. Thanks for giving me the control over my URI mappings.

Unfortunately I can't map pages like shippinginfo. I followed your instructions but I can't get the desired response:

uri: /store/shippinginfo
Language_id: 1
current_uri: 1
main_page: index.php?main_page=shippinginfo
other fields: NULL

I am using ZEN 1.38a. What am I doing wrong?

Greetings,
Paul
https://www.goldlion.eu

06 May 2009, 10:35
#207
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Goldlion:

Thanks for all your time and effort you've put in this mod. Thanks for giving me the control over my URI mappings.

Thanks for the kind words!

Goldlion:

I am using ZEN 1.38a. What am I doing wrong?

You're not quite getting the instructions right! ;)

Goldlion:

main_page: index.php?main_page=shippinginfo

This should be:

main_page: shippinginfo

(All other fields were right).

All the best..

Conor
Ceon

07 May 2009, 09:51
#208
ok_computer avatar

ok_computer

Zen Follower

Join Date:
Jan 2005
Location:
Old Blighty
Posts:
86
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Conor,

Just installed this. I've followed the steps precisely to the best of my knowledge, but I can't get to step 3 - the module isn't displaying in the admin section. Could you please assist?

I'm using Zen Cart 1.3.8.

Cheers.

07 May 2009, 09:59
#209
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

OK Computer:

Hi Conor,

Just installed this. I've followed the steps precisely to the best of my knowledge, but I can't get to step 3 - the module isn't displaying in the admin section. Could you please assist?

I'm guessing your admin folder isn't called "admin" but you have copied the admin files into a folder called "admin". You'll have to copy them into whatever your admin folder is called.

All the best...

Conor
Ceon

07 May 2009, 11:37
#210
ok_computer avatar

ok_computer

Zen Follower

Join Date:
Jan 2005
Location:
Old Blighty
Posts:
86
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hey Conor,

conor:

Hi,

I'm guessing your admin folder isn't called "admin" but you have copied the admin files into a folder called "admin". You'll have to copy them into whatever your admin folder is called.

All the best...

Conor
Ceon

That's exactly the problem. Actually that's kind of embarrassing, how stupid of me, thanks very much for the speedy response!

07 May 2009, 13:10
#211
ok_computer avatar

ok_computer

Zen Follower

Join Date:
Jan 2005
Location:
Old Blighty
Posts:
86
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Oh, one more thing actually, is there any way of getting the manufacturer's name in the URL? Thanks!

07 May 2009, 14:35
#212
edizioninautilus avatar

edizioninautilus

New Zenner

Join Date:
May 2009
Location:
Italy
Posts:
19
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

That URI wouldn't appear as it is doing if that was true. If you check your EZ-Pages your client must have entered something in one of the chapter fields.

If it's not that then I'm afraid I'm not sure what it is. This is definitely a EZ-Page configuration problem though and nothing to do with the URI Mapping module.

All the best...

Conor
Ceon

Conor,

Great job on this mod. I look forward to getting it all working perfectly. Realize you're moving at the moment, so if you're swamped right now I'm fine with a delayed answer...

Searched through this entire list and looked at the FAQs and the configuration instructions. Jill's question seems to be the closest I can find to my problem. However, I don't have any hardcoded links in my code like she did. At least I don't think I do! :huh:

I've installed CEON 3.2.2 on my Zencart 1.3.8a at http://www.edizioninautilus.it and have gotten the product and categories pages working fine. The problem for me is the EZ-page link.

I manually entered /chi-siamo on our Chi Siamo (who are we?) EZ-page, but in my header and footer, the link keeps showing up like this:

http://www.edizioninautilus.it/chi-siamo?&chapter=

Didn't even know what chapters were until today...

I tried going in and blanking out the 0s that were in the Chapter field (including the Order field), but they kept showing up as 0s even after I updated. Then went in to the EZ Pages Settings under Configuration in the Admin tool and saw that the Table of Contents for Chapters Status for EZ Pages was set to "On", so I disabled that. Still no joy. Tried putting "NULL" in the chapter field, but again saw a 0 when I looked back at the page in the admin.

Any clue? How can I get that ?&chapter= selector eliminated from the header and footer links on my page?

By the way, the page http://www.edizioninautilus.it/chi-siamo works fine and my other EZ Pages haven't yet been updated. I'm waiting to get this first one working correctly before doing the rest.

Thanks and best of luck with the move!

Jeremy

07 May 2009, 14:58
#213
edizioninautilus avatar

edizioninautilus

New Zenner

Join Date:
May 2009
Location:
Italy
Posts:
19
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi Darryl,

That sounds good!

I've been asked this a few times so I've officially added it as a FAQ. Here's what I've just added:

A string beginning with “?cPath” is being added to the end of a product's URI!

     The module retains Zen Cart's category history when linking to a linked product which is not within its “master” category, so the full path back through any parent categories is available. To do so, it is essential that the “cpath” query string parameter is added to the URI.

     Without this feature all linked products would always show as belonging to their “master” category, which will not be the category the customer has accessed the product from.. this would make it appear to the customer that they had “jumped” to another part of the site, they would no longer be in the same category they were in previously!

     There is no way to avoid the cPath parameter being added for linked products. It's advised to use linked products only when necessary and/or to simply accept that it's not possible in Zen Cart to omit the cPath parameter in the URI of linked products.

All the best...

Conor
Ceon

Conor,

This is probably just a nitpick, but I'm trying to wrestle this thing to the ground...

On my home page http://www.edizioninautilus.it, I've enabled New Products and Upcoming Products to show up. The links to my New Products show up fine with the correct URIs, but the Upcoming Product links don't. They have the cpath reference included like this:

http://www.edizioninautilus.it/di-monte-in-monte?cPath=3

Presumably, the upcoming products module treats this product as a kind of "linked" product that is in a different master category??? If so, I guess there's no way to get the cPath reference out? If not, maybe there's a fix that can be added to the mod to keep this from happening? The upcoming products that are in my catalog are definitely only in one category...

Strange that the New Products module would be working correctly, but the Upcoming Products module does not...:wacko:

Not a big deal, but it could create duplicate links for the search engines, particularly if they are crawling from the main page.

Thanks for a having a look when you get the chance.

Jeremy

08 May 2009, 22:28
#214
stephenxchen avatar

stephenxchen

New Zenner

Join Date:
Mar 2009
Posts:
8
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

here is a problem I am having when I have ceon SEO installed.

I am using godaddy.com hosting 2 sites, one is zencart, the other one is NOT zen cart.

Zencart was installed first and running fine. Then I uploaded the other site, but not working (500 internal server error).

Contacted godaddy tech support, here is their response:

"It appears that the .htaccess file that is uploaded to the account is blocking access to your stats for the account. You will need to review the scripting in this file, especially this line :

Handle all other URIs/file types (phphtmlhtm etc.) using Zen Cart (index.php)

RewriteRule (.*) index.php?%{QUERY_STRING} [L]"

our zencart site is: http://mivoga.com

But when you try: http://www.casteldelmare.com, you would get a "500 internal server error"

please advise what needs to be done to correct this.

10 May 2009, 19:33
#215
doubleo2 avatar

doubleo2

New Zenner

Join Date:
May 2009
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Make sure your .htaccess file is in the right folder.

if your folder structure looks something like this
/path/to/root/
/path/to/root/mivoga.com/
/path/to/root/casteldelmare.com/
your .htaccess file should be in mivoga.com/, not in root/.

.htaccess affects everything beneath it, so having it in root/ will affect both sites, having it in mivoga.com/ should only affect the one site.

Hopefully that makes sense.

If that doesn't work, you might have to switch hosts. I dont think its a problem with the module.

11 May 2009, 19:13
#216
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

Can you explain how this mapping should be entered/

from url:

/index.php?main_page=product_info&products_id=42

to:

/index.php?main_page=product_info&products_id=180

There are a number of blog postings with the first URL, but this no longer exists in the DB (no product_id 42). The new product is product_id 180

I've tried a number of methods that seem correct according to the docs, but they all end up as page not found.

Thanks much!

11 May 2009, 20:14
#217
doubleo2 avatar

doubleo2

New Zenner

Join Date:
May 2009
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

kiddo:

from url:

/index.php?main_page=product_info&products_id=42

to:

/index.php?main_page=product_info&products_id=180

I dont think you can do that with this module, but if its only the one url, add this to the top of your .htaccess

RewriteRule ^index.php?main_page=product_info&products_id=42 index.php?main_page=product_info&products_id=180 [R=301, NC]

Not having the L flag means it will do both rewrites (old url to new url, new url to pretty url) at the same time

Hope that works for you

11 May 2009, 20:48
#218
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Ceon URI Mapping (SEO)

That is indeed a good solution, and one I considered. The fly in the goo is that some old URLs may or may not contain cPath info as well and trying to account for all the possible permutations would be error prone and at best, a guess.

My current solution was to add a translation table at the beginning of the init chain that checks URLs for old product id numbers and does a simple translation as well as stripping out any cPath info. This seems to cover all cases no matter how the original URL was formed.

The Ceon docs seem to imply that this type of translation is possible, but in practice doesn't seem to work. If it did work as outlined, for the above translation to work, the main_page field in the URI table would need to be a little bigger than 45 chars. Not a problem.

BTW: this mod is otherwise exceptionally good! It's what I'm trying to do with it that's a little odd.

12 May 2009, 11:29
#219
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

How are you?

kiddo:

Can you explain how this mapping should be entered/

from url:

/index.php?main_page=product_info&products_id=42

to:

/index.php?main_page=product_info&products_id=180

That's easy enough. You'll have to insert a new record in the database:

uri

/index.php?main_page=product_info&products_id=180

language_id

1

current_uri

1

main_page

product_info

query_string_parameters

NULL

associated_db_id

42

alternate_uri

NULL

redirection_type_code

301

date_added

NOW()

That will redirect the user to the new page for the product. If this product's new page has a URI mapping then the user will be redirected to that mapping!

Thanks for your kind words about the module, I'm glad you like it!

All the best...

Conor
Ceon

12 May 2009, 11:36
#220
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

OK Computer:

Oh, one more thing actually, is there any way of getting the manufacturer's name in the URL? Thanks!

Simply enter it instead of having a mapping auto-generated.. the idea behind this module is you can put whatever you want in your URIs!

All the best...

Conor
Ceon