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

Ceon URI Mapping (SEO)

Locked

Views: 472,205

Results 501 to 520 of 2,913
This thread is locked. New replies are disabled.
3 Sep 2009, 12:05 PM
#501
helpmesell avatar

helpmesell

New Zenner

Join Date:
Feb 2007
Posts:
77
Plugin Contributions:
0

Ceon URI Mapping (SEO)

Lissy:

Alan - you simply click on the product to bring up the edit screen, and you can play with the URL down the bottom.

Okay, back to my problem with not being able to add products to the shopping cart.
Someone has pointed out to me that on the site where this module is working, the admin files are in a directory actually called admin.
But on the site where it's not working, my admin files are in a directory called something else.
Is it possible that somewhere in the code that's used to create the shopping cart ZC is looking for a file structure under the admin directory? Which of course wouldn't work because it needs to be changed??
I know I'm pulling at straws, but I figured it was worth asking.
I woudl REALLY like some help here!

Did you upload the modified core files to the renamed admin folder?
Also did you adjust your htaccess accordingly?

3 Sep 2009, 12:15 PM
#502
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

The admin folder was renamed about six months ago, so yes, all the necessary files were uploaded there.
And the .htaccess file was adjusted back then as well.

3 Sep 2009, 10:11 PM
#503
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Lissy:

Alan - you simply click on the product to bring up the edit screen, and you can play with the URL down the bottom.

Thanks for helping Alan out, it's nice to have help! :)

Lissy:

Is it possible that somewhere in the code that's used to create the shopping cart ZC is looking for a file structure under the admin directory?

No, the admin is completely separate from the catalog, the rewrite rule condition for the admin is only there to make sure you can continue to access the admin, it is there to prevent the admin being blocked by the rewrite rule. What the admin directory is called is of no significance.

Lissy:

I know I'm pulling at straws, but I figured it was worth asking.
I woudl REALLY like some help here!

Honestly if it's not the html_output.php file being incorrect I don't know what's wrong. I'm afraid it would probably have to be debugged manually (i.e. PHP traces temporarily added to the code).

Sorry I don't have better news than that!

All the best...

Conor
ceon

3 Sep 2009, 10:21 PM
#504
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

incircolo:

Is it possible to avoid duplicated products with this mod, if they are linked in different categories?

Yes, if you **duplicate **rather than link the product, you can enter the exact same URI for each product (say "www.site.ext/history-of-ancient-rome.html"), but this means that when a customer browses your site they will be moved to the **same **category.

I.e. if a customer is in /books/history/ and they click on the product their context on the site will become /books/archaeology/ and if they're in /books/history/ and they click on the product their context on the site will also become /books/archaeology/.

So they'll get to see the product and it won't be duplicated but if the customer went to the product via /books/history/ they'll no longer be in the history subcategory but the archaeology subcategory.

There is no way around this.

By default, the module adds a cPath for any linked product, (which makes it a unique URI in google terms I think) but both the "master" product and the "linked" product can still have the same base URI:

https://www.site.ext/history-of-ancient-rome.html

https://www.site.ext/history-of-ancient-rome.html?cPath=2_3

incircolo:

And... how much this software charge server loading time?

The module is as lightweight as can possibly be given its featureset. It can require as little as one or two SQL queries to perform its job. I've no interest in quantifying that as I believe in making software functional first, easy to maintain second and efficient third. I believe the module meets all 3 goals as well as it can!

All the best...

Conor
ceon

4 Sep 2009, 12:18 AM
#505
bherd avatar

bherd

New Zenner

Join Date:
Jul 2009
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

you must go in and edit every category and product on your site, "updating" each, to have a URI "auto-generated" for the category/product.

Conor

Hi,

What would be the best approach (if one exists) to periodically opening and closing via automation, every product and category as if a user were doing it?? The idea would be to create URL's for anything that had yet to be written. I am thinking that if the URL field is empty, that it would be safe to autogenerate a URL so the automation of "walking the product tree" would not overwrite existing URLs.

I use a front end for the store but currently have to then go in an "touch" every product to generate URLs, even it is just a load and store... the hard part is finding them all.

Could this be done via query or a script? Could whatever gets done when the product is updated be done as a result of a "for each product where URL is empty" command?

Thanks and kind regards,
B Herd

4 Sep 2009, 12:22 AM
#506
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello Conor,
when does uri_mappings_manager come out?

6 Sep 2009, 2:29 AM
#507
jeskremer avatar

jeskremer

New Zenner

Join Date:
Nov 2008
Posts:
69
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I am installing this mod for a customer on 1.3.8a, but am having issues with the .htaccess file. The directory is located in /zencart and the admin directory is /admin. I receive a 500 server error when this is turned on. Here is what I currently have in the .htaccess file:

RewriteEngine On

# Don't rewrite any files ending with .[xxxx], except for scripts/HTML files
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} \.(php|xml|html|htm|aspx)$ [NC]
# Only rewrite pages inside the zencart directory
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
# Don't rewrite payment pages/callback handlers
RewriteCond %{REQUEST_URI} !/zencart/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/realex_remote_3d_secure_iframe.php.* [NC]
# Handle all other URIs/file types (php|html|htm etc.) using Zen Cart (index.php)
RewriteRule (.*) zencart/index.php?%{QUERY_STRING} [L]
6 Sep 2009, 2:29 AM
#508
jeskremer avatar

jeskremer

New Zenner

Join Date:
Nov 2008
Posts:
69
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Sorry, here is what is in the file:

RewriteEngine On

Don't rewrite any files ending with .[xxxx], except for scripts/HTML files

RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$ [OR]
RewriteCond %{REQUEST_URI} .(php|xml|html|htm|aspx)$ [NC]

Only rewrite pages inside the zencart directory

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

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]

Don't rewrite payment pages/callback handlers

RewriteCond %{REQUEST_URI} !/zencart/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !/zencart/realex_remote_3d_secure_iframe.php.* [NC]

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

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

6 Sep 2009, 3:43 AM
#509
jeskremer avatar

jeskremer

New Zenner

Join Date:
Nov 2008
Posts:
69
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Here is what my host said about the .htaccess file:

You are seeing this error because your .htaccess rules are causing too many internal redirects. Here is what I found in the Apache error logs:

[Sat Sep 05 20:24:45 2009] [error] [client 64.81.143.26] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat Sep 05 20:24:45 2009] [error] [client 64.81.143.26] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

You should have a look at the rules you added, and trim them down so as not to cause this internal loop.

6 Sep 2009, 5:46 AM
#510
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks to my techie ex-husband :clap:, the problem of products not being added to the cart has been solved. Basically, it was the .htaccess file.
On the working site, the path is workingsite.com/zencart/files
On the bad site, which is set up as an addon domain resolving to a folder called zencart, the path is badsite.com/files

In the .htaccess file, however, the bad site was set up as badsite.com/zencart/files or variations thereof. And that's why it wasn't working.

Just thought I'd post this in here because a couple of other people have mentioned having this same problem, so at least this is another idea to check out in the hope of finding a resolution.

6 Sep 2009, 5:50 AM
#511
jeskremer avatar

jeskremer

New Zenner

Join Date:
Nov 2008
Posts:
69
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I don't quite understand what you mean. When I turn on the .htaccess file all I get on the entire site (except admin) is a 500 error.

6 Sep 2009, 5:57 AM
#512
lissy avatar

lissy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Sorry, but my information about the .htaccess file had nothing to do with your error. :no:
It was a followup to a problem I'd posted earlier in the thread about products not being added to the shopping cart when they had an updated URL using this module.

6 Sep 2009, 2:32 PM
#513
bigsy85 avatar

bigsy85

New Zenner

Join Date:
Aug 2008
Posts:
50
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I have many existing eZpages (prior to using Ceon mod) that need a URI generating for. There's nearly 500 so going into each one to have it automatically generated isn't an effective option.

Is there a way to simulate this, perhaps with SQL?

Great mod by the way!
Any help will be appreciated

7 Sep 2009, 8:46 AM
#514
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi Jesse,

The rewrite rule you have posted is from an old version of the module. Please download and install the latest version.

The rule you probably want is:

RewriteEngine On

ONLY rewrite URIs beginning with /zencart/

RewriteCond %{REQUEST_URI} ^/zencart/.* [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} !^/zencart/admin.* [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/zencart/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]

All the best...

Conor
ceon

8 Sep 2009, 12:47 AM
#515
yisou avatar

yisou

New Zenner

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

Re: Ceon URI Mapping (SEO)

Dear Ceon,

Thanks for your plugin! I am a green hand. My .htaccess conten is:

RewriteEngine On

# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$ [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]

and my zen cart study site:
http://shop.cheapglasses123.com

I have some problems with the following urls:

more pages
http://shop.cheapglasses123.com/plastic-or-acetate-glasses?&sort=20a&page=2
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/index2.html

how to add .html
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0084-plastic-glasses

contact us
http://shop.cheapglasses123.com/index.php?main_page=contact_us


http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/reviews?&page=2

add this to my cart
http://shop.cheapglasses123.com/index.php?main_page=shopping_cart&page=2&products_id=5


product details
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses?page=2


read the review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/review?&reviews_id=2

write a review
http://shop.cheapglasses123.com/plastic-or-acetate-glasses/fa0047-plastic-glasses/add-a-review?page=2


More Information
http://shop.cheapglasses123.com/index.php?main_page=page_2

help please!
Many thanks.

8 Sep 2009, 7:32 AM
#517
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Most of the URIs you posted are working fine. The extra things like &reviews_id are necessary otherwise Zen Cart doesn't know what review to show.

As for adding .html.. why would you want to? Time Berners-Lee recommends you don't!

If you do, then you must manually add .html to the end of each of your URIs, it isn't added when you auto-generate a URI.

Glad you like the module!

All the best...

Conor
ceon

8 Sep 2009, 7:34 AM
#518
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

ronny:

but i can't find where to this?

Please read the instructions!

The first part of the configuration section entitled "Specifying the current URI Mapping for any other Zen Cart page" is what you want.. obviously "main_page" for you should be "index".

Glad you like the software!

All the best...

Conor
ceon

8 Sep 2009, 11:08 AM
#519
yisou avatar

yisou

New Zenner

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

Re: Ceon URI Mapping (SEO)

Dear Conor,

Would you please tell more details on how to do please?

One more thing, after I install the MOD of EZ-Pages Meta Tag Fields, your MOD does now work for EZ-Pages.

When I reinstall your MOD, then the MOD of EZ-Pages Meta Tag Fields does not work again.

8 Sep 2009, 11:34 AM
#520
yisou avatar

yisou

New Zenner

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

Re: Ceon URI Mapping (SEO)

yisou:

Dear Conor,

Would you please tell more details on how to do please?

One more thing, after I install the MOD of EZ-Pages Meta Tag Fields, your MOD does now work for EZ-Pages.

When I reinstall your MOD, then the MOD of EZ-Pages Meta Tag Fields does not work again.

I just compared the two MOD files, and I found admin/ezpages.php makes the problem.