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

Ceon URI Mapping v4.x

Views: 452,073

Results 1,521 to 1,540 of 2,454
24 Apr 2014, 4:26 PM
#1521
elpoderoso15 avatar

elpoderoso15

New Zenner

Join Date:
Apr 2014
Location:
Florida, USA
Posts:
7
Plugin Contributions:
0

Ceon URI Mapping v4.x

mc12345678:

Regarding the second question of new/estore redirecting tonew, it should be noticeable that the second rewrite group doesn't exclude new/estore and therefore ttempts to rewrite whatever result from the first rewrite in the second rewrite. (Perhaps another way to prevent it, but I would check that the uri is not new/estore), this does mean that in the "second" store, the path of estore can not/should not be used for any rewrites in the admin.)
Added the line below to the second section of the .htaccess to prevent it from redirecting new/estore to 'new'.

RewriteCond %{REQUEST_URI} !^/new/estore/ [NC]

This had no effect.

24 Apr 2014, 5:58 PM
#1522
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Ceon URI Mapping v4.x

DivaVocals:

So it's clear to anyone following this thread the "includes/config-sites/sites_switch.php" is not part of this mod nor is it part of the default Zen Cart fileset..

It is part of the multi site module

24 Apr 2014, 6:44 PM
#1523
lhungil avatar

lhungil

Totally Zenned

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

Re: Ceon URI Mapping v4.x

ElPoderoso15:

Added the line below to the second section of the .htaccess to prevent it from redirecting new/estore to 'new'.

RewriteCond %{REQUEST_URI} !^/new/estore/ [NC]

> This had no effect.
As you are not running Apache (I see a windows server running IIS 7.5), you may need to make the changes in your "Web.config" file for IIS instead of using the .htaccess file... I have not used the ISAPI filter for .htaccess files in many years, but remember it being a little quirky and not always working as expected.

I'm still seeing additional redirects which are not part of Zen Cart (are there additional .htaccess files, IIS redirect rules, or modules installed)? Some form of "proxy" or "cache" involved?

ENABLE MOD_REWRITE

RewriteEngine On

BEGIN CEON URI MAPPING REWRITE RULES

ONLY rewrite URIs beginning with /new/estore/

RewriteCond %{REQUEST_URI} ^/new/estore($|/) [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} !^/new/estore/admin [NC]

Don't rewrite editors directory

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

Don't rewrite font directory

RewriteCond %{REQUEST_URI} !^/new/estore/font/ [NC]

Don't rewrite logs directory

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

Don't rewrite temp directory

RewriteCond %{REQUEST_URI} !^/new/estore/temp/ [NC]

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

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

END CEON URI MAPPING REWRITE RULES

START CODEIGNIGHTER REWRITE RULES

ONLY rewrite URIs beginning with /new/

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

Do not rewrite requests to /new/estore

RewriteCond %{REQUEST_URI} !/new/estore($|/) [NC]

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.

RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

END CODEIGNIGHTER REWRITE RULES

24 Apr 2014, 6:58 PM
#1524
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

Design75:

It is part of the multi site moduleThanks.. NOW we have clarity!!:laugh:

1 May 2014, 4:11 PM
#1525
millie63 avatar

millie63

New Zenner

Join Date:
Apr 2014
Location:
London
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Help pls as I have hardly any fingernails left!!

I'm upgrading my site so I've installed a subdomain to test zen cart in.
Original site: shop.com (Zencart version 1.3.8a PHP Version 5.2.17) - live site
Test site: zenner.shop.com (Zencart version 1.5.1 PHP Version 5.2.17)

In the subdomain zenner.shop.com I first installed ZC version 1.5.1 using softaculous. Then I downloaded ZC 1.5.1 and uploaded zc install folder. I created a new database and copied the database from 1.3.8a live site into the new database and upgraded. All working well on the new subdomain test site.

I downloaded and installed CEON URI MAPPING 4.4.1 on zenner.shop.com.
I read installation, configuration and fAQs.
I ran the installation check. All is fine. I created an .htaccess file by copying what was suggested on the configuration page of zc admin by the CEON module and uploaded it to public_html/zenner.
I created a new category to test called: testing

HOWEVER when I test zenner.shop.com/testing I keep getting:

Not Found
The requested URL /testing was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I tried changing the last line in the htaccess:

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

RewriteRule .* index.php [QSA,L]

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

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

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

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

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

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

Nothing works!

When I disable CEON URI module the testing category works and shows up as zenner.shop.com/testing?zenid=abaccf73d23b992636e89fb68ad03aa8

I've spoke to my host who said that rewrite module is on [~]# httpd -l | grep mod_rewrite.c and said the rewrite code looks ok too.

I'm at my wits end and want to scream.
Can anyone help me avoid a breakdown pretty pls?

2 May 2014, 11:13 AM
#1526
millie63 avatar

millie63

New Zenner

Join Date:
Apr 2014
Location:
London
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Quick update

I put the rewrite rule in the root htaccess of my cpanel and it seems to work. However it messed up all my other sites on cpanel so I had to remove it.
The problem is the zencart is installed in a subdomain of an addon domain. When testing is ready I will move it to the addon domain.

Can someone tell me if the module will work if I put the rewrite rule in the htaccess of the addon domain. If so what should the last line of the rewrite rule read?

CEON is installed in subdomain of addon domain

main domain: ecl.com
addon domain: shop.com (where shop.com/zencart - is the live site)
subdomain: zenner.shop.com

hello anyone? :blush:

2 May 2014, 11:57 AM
#1527
millie63 avatar

millie63

New Zenner

Join Date:
Apr 2014
Location:
London
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Problem solved

I had forgotten to include the subdomain in the main htaccess

RewriteCond %{HTTP_REFERER} !^http://www.zenner.shop.com/.*$ [NC]

Sorry about the rant :)

2 May 2014, 4:18 PM
#1528
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

Apologies if this has been posted before, I'm just logging it quickly for others before I go off to work:

error received (PHP 5.4) ```php
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2604203801 bytes) in /includes/classes/class.CeonURIMappingHREFLinkBuilder.php on line 378


if the following isn't the appropriate fix then it certainly appears to do the trick.
Taken from this thread <https://www.zen-cart.com/showthread.php?207435-php-5-4-fatal-error-Allowed-memory-size-of-83886080-bytes-exhausted&p=1240514#post1240514> as per Lat9 and DrByte on a similar issue:

find includes/classes/class.CeonURIMappingHREFLinkBuilder.php approx 376 replace ```php
// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
            if ($add_session_id == true && $session_started == true && SESSION_FORCE_COOKIE_USE == 'False') {
                if (defined('SID') && zen_not_null(SID)) {
                    $sid = SID;

with ```php
// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
if ($add_session_id == true && $session_started == true && SESSION_FORCE_COOKIE_USE == 'False') {
if (defined('SID') && zen_not_null(constant('SID'))) {
$sid = constant('SID');

2 May 2014, 4:58 PM
#1529
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Ceon URI Mapping v4.x

It's an appropriate fix ...

2 May 2014, 8:53 PM
#1530
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

Question is will the maintainers of this module (JS Webs) be submitting an update or is this gonna become one of those "orphaned" free modules because the maintainer is focusing on the commercial version only.. hmmmmmmmm> picandnix:

Apologies if this has been posted before, I'm just logging it quickly for others before I go off to work:

error received (PHP 5.4) ```php
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2604203801 bytes) in /includes/classes/class.CeonURIMappingHREFLinkBuilder.php on line 378

> 
> if the following isn't the appropriate fix then it certainly appears to do the trick.
> Taken from this thread <https://www.zen-cart.com/showthread.php?207435-php-5-4-fatal-error-Allowed-memory-size-of-83886080-bytes-exhausted/page6> as per Lat9 and DrByte on a similar issue:
> 
> find includes/classes/class.CeonURIMappingHREFLinkBuilder.php approx 376 replace ```php
// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
            if ($add_session_id == true && $session_started == true && SESSION_FORCE_COOKIE_USE == 'False') {
                if (defined('SID') && zen_not_null(SID)) {
                    $sid = SID;

with ```php
// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
if ($add_session_id == true && $session_started == true && SESSION_FORCE_COOKIE_USE == 'False') {
if (defined('SID') && zen_not_null(constant('SID'))) {
$sid = constant('SID');

2 May 2014, 9:16 PM
#1531
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Ceon URI Mapping v4.x

DivaVocals:

Question is will the maintainers of this module (JS Webs) be submitting an update or is this gonna become one of those "orphaned" free modules because the maintainer is focusing on the commercial version only.. hmmmmmmmm

Earlier today I thought exactly the same, and came close to doing it myself, purely to help other users and out of respect for Conor.
Maybe in the future but for now I'll leave it to the JSWEB commercial guru's.

2 May 2014, 9:25 PM
#1532
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

picandnix:

Earlier today I thought exactly the same, and came close to doing it myself, purely to help other users and out of respect for Conor.
Maybe in the future but for now I'll leave it to the JSWEB commercial guru's.nods in agreement:yes:

4 May 2014, 9:23 PM
#1533
thjco avatar

thjco

New Zenner

Join Date:
May 2014
Location:
Florida
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

I've installed this and followed all of the directions. Ive spent many hours researching and I just cant get it. There seems to be some kind of problem on GoDaddy servers but I can never find the solution

Here is the site - http://thehockeyjersey.co/store/

I've started using it on the Gift Certificates Category link. You can see it works but it displays the 404 error.

Its a Linux server on GoDaddy and I created the .htaccess file directly from the software in the admin section. I also tried adding the extra / for the RewriteRule but it doesnt work either way.

It seems so close, just one small thing missing. Thank you!

4 May 2014, 10:16 PM
#1534
thjco avatar

thjco

New Zenner

Join Date:
May 2014
Location:
Florida
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Just as an update, Im turning this off for the time being. The new url I have defined as http://thehockeyjersey.co/store/giftcertificates but it comes up as a 404 and doesnt redirect to the original url.

5 May 2014, 12:24 AM
#1535
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

THJCO:

I've installed this and followed all of the directions. Ive spent many hours researching and I just cant get it. There seems to be some kind of problem on GoDaddy servers but I can never find the solution

Here is the site - http://thehockeyjersey.co/store/

I've started using it on the Gift Certificates Category link. You can see it works but it displays the 404 error.

Its a Linux server on GoDaddy and I created the .htaccess file directly from the software in the admin section. I also tried adding the extra / for the RewriteRule but it doesnt work either way.

It seems so close, just one small thing missing. Thank you!

would help folks help you if you'd post the content of your .htaccess file.

5 May 2014, 1:14 AM
#1536
thjco avatar

thjco

New Zenner

Join Date:
May 2014
Location:
Florida
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

DivaVocals:

would help folks help you if you'd post the content of your .htaccess file.

Of course, thank you! I also turned it back on, so you can see the gift certs category not working. I have the .htaccess file in my root directory.

## BEGIN CEON URI MAPPING REWRITE RULE

RewriteEngine On

# ONLY rewrite URIs beginning with /store/
RewriteCond %{REQUEST_URI} ^/store/ [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 editors directory
RewriteCond %{REQUEST_URI} !^/store/editors/ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/store/admin/ [NC]
# Don't rewrite logs directory
RewriteCond %{REQUEST_URI} !^/store/logs/ [NC]
# Don't rewrite cron directory
RewriteCond %{REQUEST_URI} !^/store/cron/ [NC]
# Handle all other URIs using Zen Cart (its index.php)
RewriteRule .* /store/index.php [QSA,L]

## END CEON URI MAPPING REWRITE RULE
5 May 2014, 2:15 AM
#1537
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

did you write the url yourself --- in the area to write the url wanted. Or did you just tic the auto-generated box and let the module create the url?

5 May 2014, 2:17 AM
#1538
thjco avatar

thjco

New Zenner

Join Date:
May 2014
Location:
Florida
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

DarkAngel:

did you write the url yourself --- in the area to write the url wanted. Or did you just tic the auto-generated box and let the module create the url?

In my example one, yes I wrote it myself. I also tried the auto box.

5 May 2014, 3:31 AM
#1539
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Thanks, I had gotten the same thing when I first installed it but after using only the auto feature it started behaving. If the gift certificates are in a category of their own don't forget to add the category name in the url....and set the auto gen in that category too.

Right now mine is behaving as I said, however occasionally the urls are folloed with the ? and cpath too. I get members that send me a link with a question about the product and the url is as I mentioned with the partial cpath.

5 May 2014, 3:50 AM
#1540
thjco avatar

thjco

New Zenner

Join Date:
May 2014
Location:
Florida
Posts:
13
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Oh ok, I see.

My link was actually to a category and not a specific item. I tried it with the auto gen, and it still doesnt work. I've switched to the auto gen, here is the link -

http://thehockeyjersey.co/store/gift_certificates

Here what the auto gen link "should be" for an item in said category

http://thehockeyjersey.co/store/gift_certificates/thehockeyjersey.co_usd100_gift_certificate

But neither still work. It shows up properly in the site menu but when I click, I get the 404.