Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 452,135

Results 1,281 to 1,300 of 2,454
18 Aug 2013, 12:07 AM
#1281
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Ceon URI Mapping v4.x

Russian URI Mapping cannot be generated as the EZ-Page has no name!
English URI Mapping cannot be generated as the EZ-Page has no name!

I have added the Russian language ezpages and have merged the admin/ezpages.php files of the ceon and Russian pack but get the above errors. The installation check says all is installed well. Anything I add to the Ezpages gets updated but the URLs are not generated. Can you please give me some help as to what I need to do? Thanks :)

18 Aug 2013, 12:08 AM
#1282
doodlebuckets avatar

doodlebuckets

Totally Zenned

Join Date:
Jul 2005
Posts:
497
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

PS, these pages do have titles and I have tried putting the title in the boxes and that doesn't work either...

21 Aug 2013, 9:20 AM
#1283
george86 avatar

george86

New Zenner

Join Date:
Aug 2013
Posts:
1
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

rudyg99:

Thanks for the reply.

I had one more question regarding the CEON as it relates to just getting the manual entry form of CEON working properly.

These two categories here were somehow automatically placed in the shortened CEON format.

http://tiledart.com/shop2/mosaics
http://tiledart.com/shop2/mosaics?pg=store

http://tiledart.com/shop2/terra-ferma-import
http://tiledart.com/shop2/terra-ferma-import?pg=store

Im not able to have the URI mapping take effect. I am able to enter it on the backend, but it doesn't activate on the frontend.
On this product here below. I have the manual URI mapping on the product as /shop2/mosaics/airblack
but it is not accessible via this URL, but only the regular zencart format @
http://tiledart.com/shop2/index.php?main_page=product_info&cPath=113_137&products_id=299

This is the .htaccess config that I have:

BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

ONLY rewrite URIs beginning with /shop2/

RewriteCond %{REQUEST_URI} ^/shop2/ [NC]

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

RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$ [NC]

Don't rewrite any URIs for some, popular specific file format extensions,

which are not covered by main file extension condition above

RewriteCond %{REQUEST_URI} !.(mp3|mp4|h264)$ [NC]

Don't rewrite any URIs for some specific file format extensions,

which are not covered by main file extension condition above

Uncomment the following line to apply this condition! (Remove the # at the start of the next line)

#RewriteCond %{REQUEST_URI} !.(3gp|3g2|h261|h263|mj2|mjp2|mp4v|mpg4|m1v|m2v|m4u|f4v|m4v|3dml)$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/shop2/tdart [NC]

Don't rewrite editors directory

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

Don't rewrite logs directory

RewriteCond %{REQUEST_URI} !^/shop2/logs/ [NC]

Don't rewrite images2 directory

RewriteCond %{REQUEST_URI} !^/shop2/images2/ [NC]

Don't rewrite tdart2 directory

RewriteCond %{REQUEST_URI} !^/shop2/tdart2/ [NC]

Don't rewrite tmp directory

RewriteCond %{REQUEST_URI} !^/shop2/tmp/ [NC]

Don't rewrite googlecheckout directory

RewriteCond %{REQUEST_URI} !^/shop2/googlecheckout/ [NC]

Don't rewrite languages directory

RewriteCond %{REQUEST_URI} !^/shop2/languages/ [NC]

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

RewriteRule .* /shop2/index.php [QSA,L]

END CEON URI MAPPING REWRITE RULE

Thanks

Hello. if anyone has this problem it's a template related problem. Just edit includes/templates/##########_temp/sideboxes/tpl_categories.php and at line 37 remove '&pg=store' leaving only '' :) Maybe someone will find this useful :)

21 Aug 2013, 3:18 PM
#1284
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

George86:

Hello. if anyone has this problem it's a template related problem. ... Maybe someone will find this useful :)
Thank You for replying with the cause and solution :)

It appears you may have forgotten to obfuscate the location of your "admin" folder (before posting your .htaccess contents)... I would strongly suggest you rename your "admin" folder just to be on the safe side.

23 Aug 2013, 9:04 PM
#1285
podsolnuh avatar

podsolnuh

New Zenner

Join Date:
Oct 2011
Posts:
11
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

For some reason my product titles are consist of some html tags (<b> and <br>). URI mapping transforms them to symbols, e.g.:

Product name: "<b>New</b><br> Super Cool Product"
Old url: mysite.com/index.php?main_page=product_info&cPath=1&products_id=1
New url: mysite.com/category_name/b_new_b_br_super_cool_product

I have tried to type those letters in the "Remove Words" field but with no luck.
If I type "b=>", it just removes ALL "b" letteres from the new url:(

Is it possible to get rid of those "b" and "br" in the url?

23 Aug 2013, 9:56 PM
#1286
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 v4.x

Podsolnuh:

For some reason my product titles are consist of some html tags (<b> and <br>). URI mapping transforms them to symbols, e.g.:

Product name: "<b>New</b><br> Super Cool Product"
Old url: mysite.com/index.php?main_page=product_info&cPath=1&products_id=1
New url: mysite.com/category_name/b_new_b_br_super_cool_product

First <b> is an outdated HTML tag that is replaced by <strong>
Second you should NOT be including HTML tags in your product names to begin with. It's a poor practice..

Podsolnuh:

I have tried to type those letters in the "Remove Words" field but with no luck.
If I type "b=>", it just removes ALL "b" letteres from the new url:(

Is it possible to get rid of those "b" and "br" in the url?And that's the way the "Remove Words" feature works (and it is clearly explained in the user interface that this will be the result). Zen Cart will strip the opening and closing symbol of your HTML tag and save them as the ascii code before saving your products to the database.. Ceon URI will ignore these ascii symbols. Hence why your URLs convert <b> to b..

So the solution??? Manually enter the URI for these products..

OR (and my recommendation)

Stop including HTML tags in your product names.

28 Aug 2013, 6:34 PM
#1287
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hello and thanks for this great mod! :)

I have a small problem thou: everytime somebody accesses any of the sub categories in my store, error log is generated:
For example:
File does not exist: http://www...../store/main-category referer: http://www...../store/main-category/sub-cagory/

What could cause those error logs?

(.... = store url hidden for better display)

No error logs are generated if visiting main categories i.e. http://www...../store/main-category

Zen Cart vr. 1.5.1

28 Aug 2013, 7:16 PM
#1288
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 v4.x

Harri:

Hello and thanks for this great mod! :)

I have a small problem thou: everytime somebody accesses any of the sub categories in my store, error log is generated:
For example:
File does not exist: http://www...../store/main-category referer: http://www...../store/main-category/sub-cagory/

What could cause those error logs?

(.... = store url hidden for better display)

No error logs are generated if visiting main categories i.e. http://www...../store/main-category

Zen Cart vr. 1.5.1

Dunno since you haven't shared what the error logs say..

28 Aug 2013, 7:25 PM
#1289
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

DivaVocals:

Dunno since you haven't shared what the error logs say..

Thanks for the quick reply! :)

As I described, error log contains this kind of logs for every page view in sub categories:
*File does not exist: http://www...../store/main-category referer: *http://www...../store/main-category/sub-cagory/

"....." part contains domain name, just shortened it a bit for easier reading ;)

Kind regards,
Harri

28 Aug 2013, 8:21 PM
#1290
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 v4.x

please don't shorten or abbreviate... post the full error log message. not going to guess at what the problem might be unless I can see the problem> Harri:

Thanks for the quick reply! :)

As I described, error log contains this kind of logs for every page view in sub categories:
*File does not exist: http://www...../store/main-category referer: *http://www...../store/main-category/sub-cagory/

"....." part contains domain name, just shortened it a bit for easier reading ;)

Kind regards,
Harri

28 Aug 2013, 8:38 PM
#1291
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I'm sorry, I just thought it would make it easier to read.

Here is two errors:
File does not exist: /home/hkproduc/public_html/kauppa/canvas-taulut,
referer: http://www.hkproduction.fi/kauppa/canvas-taulut/suorakaide

File does not exist: /home/hkproduc/public_html/kauppa/hiirimatot,
referer: http://www.hkproduction.fi/kauppa/hiirimatot/abstraktit/talven-pinta-hiirimatto

Thanks for replying so quickly :)

28 Aug 2013, 8:46 PM
#1292
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

URL was shortened automatically, hope this works.
File does not exist: /home/hkproduc/public_html/kauppa/canvas-taulut, referer: http:// www(.)hkproduction(.)fi/kauppa/ canvas-taulut/suorakaide
File does not exist: /home/hkproduc/public_html/kauppa/hiirimatot, referer: http:// www(.)hkproduction(.)fi/kauppa/ hiirimatot/abstraktit/talven-pinta-hiirimatto

2 Sep 2013, 7:34 PM
#1293
feznizzle avatar

feznizzle

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Hi!

Does anybody know what table and what field controls which URL is attached to a Product? And do you know what controls which URI is attached to a Category?

While building structure, I have moved my products around a few times, creating a number of legacy URI. Now I need the current URI's for a ton of products. So I went and exported the table ceon_uri_mappings, but I'm having a hard time figuring out which URLs are the correct URIs I want.
:blink:

Any help would be appreciated!

2 Sep 2013, 7:40 PM
#1294
feznizzle avatar

feznizzle

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Doah! Found it... right in front of me in the ceon_uri_mappings table. The current_uri field is either 0 or 1... 1 meaning it is the actual uri.

25 Sep 2013, 9:24 AM
#1295
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hello!
Please, can somebody help me with uri mapping error logs?
Everytime someone access any of my stores subdirectory or product in it, error log is generated:

error for category:
[Wed Sep 25 12:14:08 2013] [error] [client xxx.xxx.xxx.xx] File does not exist: /home/xxxxx/public_html/kauppa/tapetit, referer: http://www.hkproduction.fi/kauppa/tapetit/talvi
[Wed Sep 25 12:14:08 2013] [error] [client xxx.xxx.xxx.xx] File does not exist: /home/xxxxx/public_html/kauppa/tapetit, referer: http://www.hkproduction.fi/kauppa/tapetit/talvi

and for product:
[Wed Sep 25 12:17:25 2013] [error] [client xxx.xxx.xxx.xx] File does not exist: /home/xxxxx/public_html/kauppa/tapetit, referer: http://www.hkproduction.fi/kauppa/tapetit/talvi/hauraat-oksat-tapetti
[Wed Sep 25 12:17:25 2013] [error] [client xxx.xxx.xxx.xx] File does not exist: /home/xxxxx/public_html/kauppa/tapetit, referer: http://www.hkproduction.fi/kauppa/tapetit/talvi/hauraat-oksat-tapetti

How can I fix that error? Store works normally thou, but it's hard to see if there are real problems because logs are full of logs like described above. Uri mapping and mapping manager ire fantastic mods, but I think there is just error in my htaccess.

30 Sep 2013, 6:28 PM
#1296
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

I can get to "http://www. hkproduction .fi/kauppa/tapetit/" so the URL appears functional and CEON URI Mapping is working correctly. Usually you only see that message in the web server logs when the URL is not accessible (or some other mod_rewrite directive exist in a parent directory such as /kauppa/ and are causing issues). Is there a corresponding 404 response shown in the web server access logs?

On an unrelated side note your template has some issues. In particular in the "head" of the template, some "relative" links are used before the "base" element is added. This is causing some 404 errors while browsing the website. Also your language definition is not at the top of the "head" section (at the minimum before the "title"), which can delay rendering in a browser.

30 Sep 2013, 7:29 PM
#1297
harri avatar

harri

New Zenner

Join Date:
Oct 2010
Location:
Finland
Posts:
26
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

lhungil:

I can get to "http://www. hkproduction .fi/kauppa/tapetit/" so the URL appears functional and CEON URI Mapping is working correctly. Usually you only see that message in the web server logs when the URL is not accessible (or some other mod_rewrite directive exist in a parent directory such as /kauppa/ and are causing issues). Is there a corresponding 404 response shown in the web server access logs?

On an unrelated side note your template has some issues. In particular in the "head" of the template, some "relative" links are used before the "base" element is added. This is causing some 404 errors while browsing the website. Also your language definition is not at the top of the "head" section (at the minimum before the "title"), which can delay rendering in a browser.

Ihungil, thank you so much!! :) Your answer was spot on: incorrect order of metatags was causing those apache error logs... I moved "base href" to the top, right after the title tag and above all other href-tags - error logs vanished :) Thanks for the meta language tip, I did that too.

On a sidenote; I do have urlrewrite rules for my main site "http://www. hkproduction .fi/" too, but luckily it wasn't causing these errors.

Best regards,
Harri

13 Oct 2013, 9:25 PM
#1298
piker avatar

piker

Zen Follower

Join Date:
Nov 2009
Posts:
109
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Just wondering if someone can help me with this.
I have been trying to implement a separate rewrite but it keeps being hijacked by the Ceon 3.6.3 module I have installed.
The rewrite is:
RewriteRule ^(.)(%2520)(..jpg)$ $1%20$3 [R=301,L]
Ceons rewrite rules hijack it somehow and deliver a 302 redirect back to the home page. Any ideas how to let this rule through?
Cheers.

13 Oct 2013, 9:45 PM
#1299
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ceon URI Mapping v4.x

piker:

Just wondering if someone can help me with this.
I have been trying to implement a separate rewrite but it keeps being hijacked by the Ceon 3.6.3 module I have installed.
The rewrite is:
RewriteRule ^(.)(%2520)(..jpg)$ $1%20$3 [R=301,L]
Ceons rewrite rules hijack it somehow and deliver a 302 redirect back to the home page. Any ideas how to let this rule through?
Cheers.
CEON does not "hijack" other rules... mod_rewrite processes rules in the order they appear (top to bottom) with the "L" flag telling mod_rewrite to stop processing further rules if the specified rule is matched.

One of the Zen Cart options is to "redirect pages not found" to the home page. Guessing you have this Zen Cart option turned on and the file you are redirecting to does not exist...

16 Oct 2013, 6:53 AM
#1300
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

lhungil:

On an unrelated side note your template has some issues. In particular in the "head" of the template, some "relative" links are used before the "base" element is added. This is causing some 404 errors while browsing the website. Also your language definition is not at the top of the "head" section (at the minimum before the "title"), which can delay rendering in a browser.
I think I may also have the same messy order you mentioned, resulting in 404 errors of the same.
Would you or someone else mind advising me if you spot the same problem and what adjustment to make/where?
https://www.partydudes.co.nz
Thanks