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

Ceon URI Mapping (SEO)

Locked

Views: 472,351

Results 1,661 to 1,680 of 2,913
This thread is locked. New replies are disabled.
30 Jun 2010, 2:44 PM
#1661
divavocals avatar

divavocals

Totally Zenned

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

Ceon URI Mapping (SEO)

lollypopstar:

Hi Conor,

Loving the mod so far - so much easier to implement than other URL rewriting mods!

One question, in ZenCat version 1.3.9d the auto generate feature only works on new categories & products added to the site AFTER the mod has been installed right?

Have you (or anyone else) got the SQL code to loop through all the existing categories & products and add values to the MySQL table 'ceon_uri_mappings'

I could probably figure it out myself - but thought I would ask first?!

(Or might just tell the client it can't be done and make them edit & save all the existing cats and products!)

Thanks in advance
LauraIn the README file for this module, are instructions for manually adding URIs to the database. You could use those instructions and come up with a way to automate adding existing product URIs.

I've used two methods for adding existing URIs to the database:

  1. Create a URI spreadsheet and upload URI data from the spreadsheet
  2. Have the client do the 1 time manual work to update the existing products. (Painful, but since they only had to do it ONCE they didn't mind)
30 Jun 2010, 7:56 PM
#1662
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Well... my celebration might have been a tad premature. I am experiencing an issue.

The URI is adding "?zenid=gobbletygook" to the pretty urls it makes. Here are some examples:
/Warming_Cabinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Bassinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Narcotics_Storage?zenid=1121e91eeec859ef1cab5f6972e616c6

In case you want to look, my site is: med harvest . com

If you delete the garbage, it loads just fine:
/Warming_Cabinets
/Bassinets
/Narcotics_Storage

When I installed Ceon URI 3.6.3 into my ZC139d, I simply dropped all provided files in... no merging, nothing. Just a straight adding of all files from the "files" folder, overwriting of files from "modified_core_files", and then overwriting of files from "template_override_files".

I'm pretty sure I got that right, everything else appears to work perfectly. I file compared between my server and the pure mod files, found the html_output.php to be an exact match.

The only part where I had to do any thinking was the htaccess file, I figure this might be the prob?

Here is what I have:

<Files 403.shtml>
order allow,deny
allow from all
</Files>

Added to block Yandex Spider

deny from yandex.ru

RewriteEngine On

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} .(html)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/adminZZZ1 [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors [NC]

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/whm [NC]

Handle all other URIs using Zen Cart (index.php)

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

Any thoughts on what I did wrong?

Thanks,
Mike

1 Jul 2010, 6:52 AM
#1663
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)

To quote Conor in a previous post in this thread on the same question.. > Zen Cart adds those parameters. I'm afraid you'd have to modify the way Zen Cart works! There are several threads posted in this forum which the reason why these zenid's are added is explained (including a few recent posts)

Bottomline, this is default Zen Cart behavior which is not caused by Connor's mod, and cannot be "fixed" by it.. It's also not a cause for concern nor will it create duplicate content if that's your real concern..

Feznizzle:

Well... my celebration might have been a tad premature. I am experiencing an issue.

The URI is adding "?zenid=gobbletygook" to the pretty urls it makes. Here are some examples:
/Warming_Cabinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Bassinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Narcotics_Storage?zenid=1121e91eeec859ef1cab5f6972e616c6

In case you want to look, my site is: med harvest . com

If you delete the garbage, it loads just fine:
/Warming_Cabinets
/Bassinets
/Narcotics_Storage

When I installed Ceon URI 3.6.3 into my ZC139d, I simply dropped all provided files in... no merging, nothing. Just a straight adding of all files from the "files" folder, overwriting of files from "modified_core_files", and then overwriting of files from "template_override_files".

I'm pretty sure I got that right, everything else appears to work perfectly. I file compared between my server and the pure mod files, found the html_output.php to be an exact match.

The only part where I had to do any thinking was the htaccess file, I figure this might be the prob?

Here is what I have:

Any thoughts on what I did wrong?

Thanks,
Mike

1 Jul 2010, 7:03 AM
#1664
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)

This is one of MANY posts on this topic (zenids)..
http://www.zen-cart.com/forum/showpost.php?p=349836&postcount=3

If you need to know more, DrByte is your best source for this information.. If you post a question in a separate thread, you'll get a much more detailed explanation of zenids.. Try searching first though.. there really are quite a few existing posts on the topic..

Feznizzle:

Well... my celebration might have been a tad premature. I am experiencing an issue.

The URI is adding "?zenid=gobbletygook" to the pretty urls it makes. Here are some examples:
/Warming_Cabinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Bassinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Narcotics_Storage?zenid=1121e91eeec859ef1cab5f6972e616c6

In case you want to look, my site is: med harvest . com

If you delete the garbage, it loads just fine:
/Warming_Cabinets
/Bassinets
/Narcotics_Storage

When I installed Ceon URI 3.6.3 into my ZC139d, I simply dropped all provided files in... no merging, nothing. Just a straight adding of all files from the "files" folder, overwriting of files from "modified_core_files", and then overwriting of files from "template_override_files".

I'm pretty sure I got that right, everything else appears to work perfectly. I file compared between my server and the pure mod files, found the html_output.php to be an exact match.

The only part where I had to do any thinking was the htaccess file, I figure this might be the prob?

Here is what I have:

Any thoughts on what I did wrong?

Thanks,
Mike

1 Jul 2010, 7:14 AM
#1665
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

you can also just switch off sessions in your admin to get rid of the zenid. but your site will not work on people computers who have cookies disabled.

Sounds bad doesnt it?.. not really... after a post by DrByte i played and found that other well known carts (Prestashop/magento for example) dont work on PCs which have cookies disabled. So... its up to you... how many people have cookies disabled?... how many online shoppers/PC users know what cookies are?.. id guess fairly few

Feznizzle:

Well... my celebration might have been a tad premature. I am experiencing an issue.

The URI is adding "?zenid=gobbletygook" to the pretty urls it makes. Here are some examples:
/Warming_Cabinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Bassinets?zenid=1121e91eeec859ef1cab5f6972e616c6
/Narcotics_Storage?zenid=1121e91eeec859ef1cab5f6972e616c6

In case you want to look, my site is: med harvest . com

If you delete the garbage, it loads just fine:
/Warming_Cabinets
/Bassinets
/Narcotics_Storage

When I installed Ceon URI 3.6.3 into my ZC139d, I simply dropped all provided files in... no merging, nothing. Just a straight adding of all files from the "files" folder, overwriting of files from "modified_core_files", and then overwriting of files from "template_override_files".

I'm pretty sure I got that right, everything else appears to work perfectly. I file compared between my server and the pure mod files, found the html_output.php to be an exact match.

The only part where I had to do any thinking was the htaccess file, I figure this might be the prob?

Here is what I have:

Any thoughts on what I did wrong?

Thanks,
Mike

1 Jul 2010, 2:53 PM
#1666
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks for the help you guys. As much as I've been reading in here, I'm surprised I missed it. Maybe it is because I tend to skim when a problem seems "particular" to the user.

At one point I installed SSU's and I don't recall having this issue.

Anyway, cool. I honestly don't care as long as it doesn't show up on an index crawl from SEO (it won't, I know).

1 Jul 2010, 4:30 PM
#1667
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Feznizzle:

Thanks for the help you guys. As much as I've been reading in here, I'm surprised I missed it. Maybe it is because I tend to skim when a problem seems "particular" to the user.

As both DivalVocals and Martin have said, this issue does indeed affect everyone using Zen Cart..

Feznizzle:

At one point I installed SSU's and I don't recall having this issue.

I don't know how it works but if it didn't support zenids then it was actually "breaking" the cart by not supporting them. It doesn't look nice but it works! :)

All the best..

Conor
ceon

1 Jul 2010, 4:42 PM
#1668
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

As both DivalVocals and Martin have said, this issue does indeed affect everyone using Zen Cart..
It doesn't look nice but it works! :)

That's life. I'm not sweating it. Search engine bots will correctly index according to the Ceon URI rewrites... that is all I care about!

Thanks for the great mod and wonderful support!

~Mike

7 Jul 2010, 7:44 AM
#1669
dajiaoyazi avatar

dajiaoyazi

New Zenner

Join Date:
Jan 2010
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I can't visit this page. https://www.xxxx.com/google398d887c8c768d30.html

how do edit the .htaccess file?

RewriteEngine On

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,5}$ [OR]
RewriteCond %{REQUEST_URI} .(html)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/admin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/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 Jul 2010, 9:06 AM
#1670
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

dajiaoyazi:

I can't visit this page. www.xxxx.com/google398d887c8c768d30.html

how do edit the .htaccess file?

That .htaccess file seemed fine.

Send me FTP details for your site via this link and I'll take a look.

All the best..

Conor
ceon

7 Jul 2010, 2:07 PM
#1671
sdsprings avatar

sdsprings

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello Conor,

I got frustrated with :censored: IIS a few months back and hand't checked to see about any updates until recently and BAM! - IIS functionality and all.

Thanks a bunch man your hard work is greatly appreciated.

I buzzed around and saw some other people were having trouble with the add to cart in certain situations, not sure if that is an IIS issue or what but I can't seem to get my form to work when the URI rewriting is enabled. I troubleshooted with some of the solutions listed here and can't seem to put my finger on it. The page just refreshes when add to cart is clicked if an alternative URI is given.

One other thing I wanted to ask you about was about the canonical tag. I don't see the link rel=" tag ever on the page unless u are using http headers, in which case I don't see those either.

Main reason this could be an issue is because if you are ignoring the parameters and essentially showing the same exact page, all with no canonical tag.. then there is duplicate content all over the place if you know what I mean.

Let me know if you have any insight and thanks again as usual.
:clap:

7 Jul 2010, 2:39 PM
#1672
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sdsprings:

Thanks a bunch man your hard work is greatly appreciated.

You're welcome and thanks for the nice comments!

sdsprings:

but I can't seem to get my form to work when the URI rewriting is enabled.

That sounds like you are POSTing a form to an old URI, which is then redirecting to the new, mapped/static URI and therefore dropping the POSTed form values.

You need to make sure that all the forms on your site use the zen_href_link() function.

You can look at the source of your pages and see if the add to cart forms use an "action" of "index.php?main_page=XXXX&cPath=XX"... if they do then the forms aren't using the mapped/static URI, in which case you'll need to fix your template to use the correct code (the zen_href_link function).

sdsprings:

One other thing I wanted to ask you about was about the canonical tag. I don't see the link rel=" tag ever on the page unless u are using http headers, in which case I don't see those either.

You should be able to look at the source of any category or product page etc. and see a rel="canonical" tag. If not, then you probably haven't uploaded all the files from the distribution, specifically the file:

includes/templates/template_default/jscript/jscript_ceon_uri_mapping_canonical_link_header_tag.php

I've just noticed that I have forgotten to list that file in the documentation. I'm guessing that subsequently you forgot to upload it!

Hope that helps!

All the best..

Conor
ceon

7 Jul 2010, 4:16 PM
#1673
sdsprings avatar

sdsprings

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hey Conor,

Thanks for the prompt reply. I did ensure that I was using the correct zen function for the links and it seems to be spitting out the correct url for the form that is assigned to the product, however the page still refreshes.

Strange. I'm going to dig around some more and see what I can find but let me know if you can think of any other areas to peak at.

Thanks again!

7 Jul 2010, 5:57 PM
#1674
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sdsprings:

Thanks for the prompt reply. I did ensure that I was using the correct zen function for the links and it seems to be spitting out the correct url for the form that is assigned to the product, however the page still refreshes.

That's very strange indeed.

Use FireFox and an extension called "Live HTTP Headers" and see what is happening (you may be doing that already).

You could possibly have a different rule in your .htaccess file which is redirecting from one address to another, breaking any post.

Hope that helps!

All the best..

Conor
ceon

9 Jul 2010, 1:45 AM
#1675
sung2010 avatar

sung2010

New Zenner

Join Date:
Jun 2010
Posts:
36
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi,

Hope you can help me out here ... :(

I believe I've successfully installed the ceon url mapping module since I can see it in the admin -> module.

I followed the instruction that rewrite the rule in .htaccess file ( under admin folder)

Since I've rename my admin folder name, so I use the rewrite rule :

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/myadminfolder [NC]

and then I went back to admin and click " category " , scrolled down to the page and check ' tick the box to auto generate url mapping ' .

when I did above action, the page becomes ' Page Not Found '

when I erase and unchecked the box, the page is back to original..

Can anyone please help me ???? What's issue to cause that ?

Thank you.

my site: https://www.happyworkshopus.com

9 Jul 2010, 8:22 AM
#1676
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sung2010:

I followed the instruction that rewrite the rule in .htaccess file ( under admin folder)

You don't put the .htaccess file in the admin folder, you put it in your store's main folder.

Hope that helps!

All the best..

Conor
ceon

9 Jul 2010, 5:07 PM
#1677
sung2010 avatar

sung2010

New Zenner

Join Date:
Jun 2010
Posts:
36
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

You don't put the .htaccess file in the admin folder, you put it in your store's main folder.

Hope that helps!

All the best..

Conor
ceon

Hi Ceon,

you mean, in include folder? there is no .htaccess file in the root directory of / .. but I see there is https://www.happyworkshopus.com/index.php.

9 Jul 2010, 6:39 PM
#1678
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sung2010:

you mean, in include folder? there is no .htaccess file in the root directory of / .. but I see there is www.happyworkshopus.com/index.php.

Yes, you must have a .htaccess file there with the rewrite rule for Ceon URI Mapping!

All the best..

Conor
ceon

9 Jul 2010, 6:41 PM
#1679
sung2010 avatar

sung2010

New Zenner

Join Date:
Jun 2010
Posts:
36
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hi Ceon,

So you mean, I need to create one .htaccess file and place in https://www.happyworkshopus.com/ ? because there is no .htaccess file in the root of /

9 Jul 2010, 6:42 PM
#1680
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

sung2010:

Hi Ceon,

you mean, in include folder? there is no .htaccess file in the root directory of / .. but I see there is www.happyworkshopus.com/index.php.

Yes he mean you need to put or create a .htaccess file in the root of your server. For example wherever your zencart files are

admin
cache
docs
download
editors

and etc. that is the root of the store. Put the .htacces there.