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

Ceon URI Mapping v4.x

Views: 451,792

Results 221 to 240 of 2,454
24 Nov 2011, 17:15
#221
conor avatar

conor

Passed

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

Ceon URI Mapping v4.x

Hi Damian,

damiantaylor:

I ended up using preg_replace('/?.*$/', '', $_SERVER['REQUEST_URI']) to get rid of the zenid from the querystring but it seems to work fine now :smile:

Yes, that's what I meant by "pull the information you want". :)

All the best...

Conor
ceon

25 Nov 2011, 13:51
#222
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I have a really strange problem i installed the version Installed Version: 4.0.7,, installation checks are good!!

In ez-pages i clicked the uri mapping and now the links for them look good,BUT every now and again they bring up a 404 error,,

To be more specific i have my integrated blog as a link in ez pages, it changes from (blog) to **Blog=zenidxxffsscffcfffcfccfccfcf,,**Its when it changes to BLOG with the zenid behind it, it send the 404 message..

For example 30 minutes ago i got the 404 error message when clicking on my ez page for the blog,, when it had the **zenidxxxxxxx behind the url..**So i left it and just checked a minute ago and it back to the https://www.mydomain.co.uk/blog and the link works perfectly,,

So as you can see its an intermittent problem, that needs to be sorted,,
Im just not sure how,,

any suggestions would help..

25 Nov 2011, 17:36
#223
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

sash:

So as you can see its an intermittent problem, that needs to be sorted,,
Im just not sure how,,

any suggestions would help..

Since you didn't actually give a real domain name I can't really test anything so my guess is to see if you have mod_security installed and to check your logs for security errors if you do.

Other than that, I'm afraid I don't know what your problem is but nothing in computers is intermittent.. that's what's good about debugging these calculation machine thingies, you know that if you think something is intermittent that you aren't looking at it in the right way and are probably looking at a correlation instead of a causation.

Wishing you luck in getting this fixed..

Conor
ceon

25 Nov 2011, 18:13
#224
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi , Conor it is probably (most likely) me that hasnt done something .http://bit.ly/ibqR2D..

im a total nervous wreck installing mods and was glad i got this to work,

25 Nov 2011, 18:47
#225
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

sash:

Hi , Conor it is probably (most likely) me that hasnt done something .http://bit.ly/ibqR2D..

im a total nervous wreck installing mods and was glad i got this to work,

Took a look, tried adding on zenid=asdasdasd to the blog URI and can't see anything.

Sorry, can't help you here with this.. you should start a new thread as this isn't an issue with Ceon URI Mapping but your blog. If "/blog" is excluded from Ceon URI Mapping's rewrite rule, which it appears to be, then it can't have anything to do with the problem.

Good luck in getting it sorted!

All the best..

Conor
ceon

25 Nov 2011, 18:55
#226
sash avatar

sash

New Zenner

Join Date:
Jul 2010
Posts:
99
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

Took a look, tried adding on zenid=asdasdasd to the blog URI and can't see anything.

Sorry, can't help you here with this.. you should start a new thread as this isn't an issue with Ceon URI Mapping but your blog. If "/blog" is excluded from Ceon URI Mapping's rewrite rule, which it appears to be, then it can't have anything to do with the problem.

Good luck in getting it sorted!

All the best..

Conor
ceon

Thanks for taking a look Conor, appreciated:smile:

29 Nov 2011, 04:30
#227
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Just did a fresh install of zencart 1.3.9H

Added the latest version of ceon url mapping

Every product page that I add a url to won't view correctly. It is like every page that gets the URL is showing the main-page data

socialmarketingninjas.com

I am pretty sure it is the .htaccess file issue. an empty file gives me this error, but the recommended settings give all 404 errors, with the two // or with / on the index.php

any suggestions?

BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

ONLY rewrite URIs beginning with //

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

Don't rewrite editors directory

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

Don't rewrite cgi-bin directory

RewriteCond %{REQUEST_URI} !^//cgi-bin/ [NC]

Don't rewrite marketing directory

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

Don't rewrite .qidb directory

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

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

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

END CEON URI MAPPING REWRITE RULE

29 Nov 2011, 09:13
#228
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

CheapStairParts:

Just did a fresh install of zencart 1.3.9H

You've messed up your configure file(s). You can't have two slashes. Sort that out and generate a new example rewrite rule and use it and things should be fine.

(Hint: look at values for DIR_WS_CATALOG and HTTP_SERVER).

All the best..

Conor
ceon

29 Nov 2011, 12:35
#229
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I blame my host, hostgator, since it was their quickinstall tool that I used.

I removed all of the extra // in the config file and it worked.

Thank you so much!

29 Nov 2011, 12:43
#230
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

CheapStairParts:

I blame my host, hostgator, since it was their quickinstall tool that I used.

I removed all of the extra // in the config file and it worked.

Thank you so much!

Glad you're sorted.

What is this "quick install tool"?

Something that installs Zen Cart? Or third party ZC modules?

If ZC, then it created configure.php files with double slashes in them?

Out of curiosity, where were the double slashes, in which defines?

hostgator are quite popular I thought so surprised this is the first time I've encountered this problem.

All the best...

Conor
ceon

29 Nov 2011, 23:25
#231
cheapstairparts avatar

cheapstairparts

Zen Follower

Join Date:
Oct 2007
Posts:
149
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Quick Install is similar to Fantastico. A program in cPanel that automatically installs a large variety of programs with a few clicks. (tons of shopping cards, blogging engines, etc.)

For whatever reason they are adding extra // during the install phase. I send a message to tech support about it.

And hopefully any other people who run into this same issue now know the fix.

30 Nov 2011, 08:24
#232
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

CheapStairParts:

And hopefully any other people who run into this same issue now know the fix.

Yes, thanks for the update!

Enjoy the new software/URIs! :)

All the best..

Conor
ceon

04 Dec 2011, 14:21
#233
vko82 avatar

vko82

New Zenner

Join Date:
Feb 2010
Posts:
6
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hello,

I managed to install ceon_uri_mapping_4.0.3_for_zc with ZC 1.3.8a. It works fine and rewriting works smoothly for all pages, except the index page.

I have bilingual site and I would like to have unique URIs for both language mutations of the homepage, such as:

site.com/en/ (originally index.php?main_page=index&language=en)
site.com/fr/ (originally index.php?main_page=index&language=fr)

I inserted these records into the mappings table (in analogous manner which worked for all other main_page=pagename pages except 'index'):

INSERT INTO ceon_uri_mappings
(uri, language_id, current_uri, main_page, query_string_parameters, associated_db_id, alternate_uri, redirection_type_code, date_added)
VALUES
('/en/', 1, 1, 'index', NULL, NULL, NULL, NULL, '2011-08-31 19:40:00'),
('/fr/', 2, 1, 'index', NULL, NULL, NULL, NULL, '2011-08-31 19:40:00');

But I can't make these URIs visible and provide unique, distinguishable URIs for each language mutation. At the moment, the homepage has the same URI for both languages. Am I missing something here?

I also tried to add language=en|fr into the query_string_parameters column. This did not solve the problem.

Many thanks for help

05 Dec 2011, 11:02
#234
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

The homepage is handled specifically in the Ceon URI Mapping code.

At Ceon we also use /en/ etc to specify differing language versions in our aarck / aawe software. Thinking about it, I may not ever have tested the same functionality in Ceon URI Mapping for the homepage. I have tested it for other pages, e.g. /fr/chaises etc

This is probably something ive overlooked.

If so I'll fix it in 4.0.8

I'm in hospital at the minute so I don't know when that will be released.

All the best...

Conor,
Ceon

06 Dec 2011, 19:07
#235
damiantaylor avatar

damiantaylor

Zen Follower

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

Re: Ceon URI Mapping v4.x

Has anyone experienced an issue when the zenid is appended to the URI on a ezpage link?

If I go to http://www.snowrepublic.co.uk/Contact-Us&zenid=vtlb74o1uonei0rikinq2a4gn7 I get the 'page not found' page.

If I go to the same page without the zenid, so http://www.snowrepublic.co.uk/Contact-Us I get the contact us page.

It seems to be just an issue for me on ezpage links......categories, products and banners all work fine with the zenid appended.

06 Dec 2011, 19:27
#236
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi Damian,

The problem in the first URI is that the link is being built with an ampersand (&) instead of a question mark.

This doesn't happen with a standard Zen Cart and Ceon URI Mapping so the problem must be caused by some modification on the respective bit of your site.

Find and fix that and things will be fine..

Look for Zen ID being manually added on with an & in the template source and pass the zenid as a parameter to zen_href_link instead.

All the best...

Conor
ceon

07 Dec 2011, 08:41
#237
damiantaylor avatar

damiantaylor

Zen Follower

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

Re: Ceon URI Mapping v4.x

Thanks Conor,
I can't believe I didn't notice that!

09 Dec 2011, 22:47
#238
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Ceon URI Mapping v4.x

I hope you are doing well, Conor. I just checked the thread due to a problem and saw that you were in the hospital. Please tell me you aren't still there!

Is your most recent version compatible with php 5.3.8?

My server has just been upgraded and admin isn't working anymore.

10 Dec 2011, 01:55
#239
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi Delia,

I hope you are well!

delia:

I hope you are doing well, Conor. I just checked the thread due to a problem and saw that you were in the hospital. Please tell me you aren't still there!

Thanks for the nice comments. Out now but even more seriously ill... lol, all fun in 2010 and 2011 for me... roll on a better 2012 I hope!.. will answer here as and when I can of course!

delia:

Is your most recent version compatible with php 5.3.8?

I test everything with 5.4.0 these days as that's the version of PHP I am writing all my new software for.. I also run various test and production servers with 5.3.x and 4.x and I see no reason for any problems on any version, so I would say yes.

delia:

My server has just been upgraded and admin isn't working anymore.

What specific problems are you experiencing?

To be honest it might be better to ask quickly in private (sending admin and FTP details if necessary) (you have my e-mail address).

All the best..

Conor
ceon

10 Dec 2011, 11:02
#240
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Ceon URI Mapping v4.x

Thanks, Conor, you are the greatest!