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

Ceon URI Mapping (SEO)

Locked

Views: 472,337

Results 1,181 to 1,200 of 2,913
This thread is locked. New replies are disabled.
21 Feb 2010, 12:08 AM
#1181
toboldlygo avatar

toboldlygo

New Zenner

Join Date:
May 2007
Posts:
48
Plugin Contributions:
0

Ceon URI Mapping (SEO)

Hi Conor,
Thanks for the answer. I had a thought that the problem might have been a coincidence, however, I thought I should check to make sure.

Thanks

21 Feb 2010, 4:07 AM
#1182
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)

sfklaas:

I have downloaded and installed this mod, and it is great! Pretty easy install and easy to follow documentation.

My problem: On one of my sites, I use the AJAX Image swapper mod that also incorporates the fual slimbox lightbox and Image Handler. None of my product images seem to load.

While searching through previous threads, I came across this:

As far as a solution to this problem to get my images up, i'm not sure which files I would need to modify. I need to keep the image swapper, but would love to keep the URI mod. Can I make both work together?And as one who installs Fual Slimbox and Image Handles on ALL her sites, I can tell you the issue is NOT with these two mods..

21 Feb 2010, 10:46 AM
#1183
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

DivaVocals:

And as one who installs Fual Slimbox and Image Handles on ALL her sites, I can tell you the issue is NOT with these two mods..

It could possibly be that the slimbox module uses relative URIs and you have a base href tag set so you never experienced these problems.

I don't know if that's the case, just saying off the top of my head.. I'd have to take an actual look at the slimbox module to see if it is!

<base href="http://www.yoursite.com/images/" />

Just thought I'd post that thought in case the problem is relative URIs in the slimbox module and your post the the previous poster "off the scent". May not be the case. may be. Don't know! :)

All the best..

Conor
ceon

21 Feb 2010, 11:00 AM
#1184
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

toboldlygo:

Thanks for the answer. I had a thought that the problem might have been a coincidence, however, I thought I should check to make sure.

Just took a quick look at the source of the slimbox module (didn't install or run it tho) and it does indeed use relative URIs.

So either you must make sure that you have a base href set in your HTML header (includes/templates/YOUR_TEMPLATE/common/html_header.php) or, if your store is NOT on a subdiretory (i.e. DIR_WS_CATALOG is '/') you can try changing the value of DIR_WS_IMAGES in your configure.php, making it a full path (note slash at start):

define('DIR_WS_IMAGES', '/images/');

Or you can update the zen_lightbox() functin in includes/functions/extra_functions/zen_lightbox.php to make it output static URIs by adding in the path to the image folder everywhere you see DIR_WS_IMAGES:

'/myshop/' . DIR_WS_IMAGES

One of those solutions should get you up and running.

I'd appreciate it if you post back here to like me know how you get on!

All the best..

Conor
ceon

21 Feb 2010, 8:35 PM
#1185
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)

conor:

It could possibly be that the slimbox module uses relative URIs and you have a base href tag set so you never experienced these problems.

I do indeed.. These are the settings from my configure.php

/ Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.mysite.com');
  define('HTTPS_SERVER', 'https://www.mysite.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
22 Feb 2010, 3:57 AM
#1186
sfklaas avatar

sfklaas

Zen Follower

Join Date:
Mar 2008
Posts:
219
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks for the suggestions.

you can try changing the value of DIR_WS_IMAGES in your configure.php, making it a full path (note slash at start): define('DIR_WS_IMAGES', '/images/');

I tried this, but it did not work. I was thinking that the configure.php change would be the easiest fix. I also tried the base href in the header.

Along with the lightbox.php file, I have another file "ais_functions.php" that came with the ajax image swapper that is also in the extra functions folder. Here is a sample of the code:

$ais_config = array();

$ais_config['small']['width'] = IMAGE_VIEWER_SMALL_IMAGE_WIDTH;
$ais_config['small']['height'] = IMAGE_VIEWER_SMALL_IMAGE_HEIGHT;
$ais_config['medium']['suffix'] = '_MED';
$ais_config['medium']['width'] = IMAGE_VIEWER_MEDIUM_IMAGE_WIDTH;
$ais_config['medium']['height'] = IMAGE_VIEWER_MEDIUM_IMAGE_HEIGHT;
$ais_config['large']['suffix'] = '_LRG';
$ais_config['large']['width'] = IMAGE_VIEWER_LARGE_IMAGE_WIDTH;
$ais_config['large']['height'] = IMAGE_VIEWER_LARGE_IMAGE_WIDTH;

//Enter the filename of small (default) image, generate filenames for the other sizes.
//Sizes are 'small', 'medium', or 'large'
function get_image_filename($filename, $size = 'small') {
global $ais_config;
$filename_array = explode('.',$filename);
$ext = '.' . $filename_array[count($filename_array) - 1];
$filename_only = substr($filename, 0, strrpos($filename,'.'));
if ($size != 'small') {
$filename_only = substr_replace($filename_only, DIR_WS_IMAGES . $size . '/', strpos($filename, DIR_WS_IMAGES), strlen(DIR_WS_IMAGES));
}
if ($size == 'large') {
$new_filename = (file_exists($filename_only . $ais_config[$size]['suffix'] . $ext))?($filename_only . $ais_config[$size]['suffix'] . $ext):((file_exists($filename_only . $ais_config['medium']['suffix'] . $ext))?($filename_only . $ais_config['medium']['suffix'] . $ext):($filename));
}
else {
$new_filename = (file_exists($filename_only . $ais_config[$size]['suffix'] . $ext))?($filename_only . $ais_config[$size]['suffix'] . $ext):($filename);
}
return $new_filename;
}

Not sure if this can help pin point what needs to be done. I figured the DIR_WS_IMAGES is where the problem is.

22 Feb 2010, 6:15 AM
#1187
dudeshane01 avatar

dudeshane01

New Zenner

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

Re: Ceon URI Mapping (SEO)

Any success for anyone of you to make the zen lightbox work together with SEO URL's.
My lightbox was working well before i installed SEO URL's on my jewellry store.
Can anyone suggest some fix ?
You may have a look at lustrejewel.

22 Feb 2010, 8:58 AM
#1188
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sfklaas:

Not sure if this can help pin point what needs to be done. I figured the DIR_WS_IMAGES is where the problem is.

I'd still say it is.

I'm sorry but I'm not willing to put in any more time supporting another person's module. If you follow the advice I've given about the use of relative URIs and making the other software use full paths by changing the code that uses DIR_WS_IMAGES you should be able to get the other module to work with sites that use static URIs (i.e. with Ceon URI Mapping/Ultimate SEO/SSU etc.).

I hope you can get this sorted soon.. I don't imagine it should take too long to trace the source of the problem and fix the Image Swapper module. Please post back on the Image Swapper thread (or here even) with your solution for others once you get things sorted, so that others can avoid the same problem.

I hope you can understand that I can't put a lot of time into analysing other modules to get them to work with static URIs.. if the answer is obvious I'll of course always say, but if, as in this case, I have to download a module and try out changing the code, that's a bit too much work for me.

Good luck getting this sorted!

All the best..

Conor
ceon

22 Feb 2010, 11:17 PM
#1189
giftpackaging avatar

giftpackaging

New Zenner

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

Re: Ceon URI Mapping (SEO)

giftpackaging:

Hi Conor,

Great add-on!

I downloaded and installed it yesterday. I was a little bit confused how the .htaccess file worked but I created one in the same folder as the install index.php as per the instructions. I followed the steps to change to /shop and also /admin is different.

Everything seems to be working fine, I've started updating links to be autogenerated. Its so easy, but takes a while. There isn't a button you can press to update all categories/products all at once?

I've just realised today, that our main page doesn't show up.
https://www.giftpackaging.com.au
https://www.giftpackaging.com.au/shop/ will work once you click on "home" etc

Can you help on this?

Michael

Hi Conor,

After installing the module, the main content doesn't show up, displays a zencart 404 page. Everything else is ok.

https://www.giftpackaging.com.au - 404 on front/main page
https://www.giftpackaging.com.au/shop/ - works

Michael

22 Feb 2010, 11:30 PM
#1190
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

giftpackaging:

After installing the module, the main content doesn't show up, displays a zencart 404 page. Everything else is ok.

Sorry but I don't know why that would be. There may be something wrong in your .htaccess file. Are you sure you have limited the rewrites to the shop directory?

All the best...

Conor
ceon

22 Feb 2010, 11:33 PM
#1191
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)

giftpackaging:

Hi Conor,

After installing the module, the main content doesn't show up, displays a zencart 404 page. Everything else is ok.

www.giftpackaging.com.au - 404 on front/main page
www.giftpackaging.com.au/shop/ - works

MichaelThe first question I would ask is why do you have your shop configured in this way?? Is Zen Cart in both the root directory AND in a sub directory??

I think a great deal of your problem is in how your store is configured..

22 Feb 2010, 11:55 PM
#1192
giftpackaging avatar

giftpackaging

New Zenner

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

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Sorry but I don't know why that would be. There may be something wrong in your .htaccess file. Are you sure you have limited the rewrites to the shop directory?

All the best...

Conor
ceon

In the /shop/ directory there wasn't a .htaccess file, so I created one with below:

(although below admin is actually changed to another folder, i haven't written it below)

RewriteEngine On

ONLY rewrite URIs beginning with /shop/

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

Don't rewrite editors directory

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

23 Feb 2010, 12:00 AM
#1193
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

giftpackaging:

In the /shop/ directory there wasn't a .htaccess file, so I created one with below:

That .htaccess file is fine.

What isn't is that you have your shop in the /shop directory but you are also trying to have / as the shop.. I don't know how you've done that but as DivaVocals says, why would you want the home page of your shop to be **BOTH **/ and /shop ?

You'll need to rework your site so that / isn't your shop.

Or to redirect / to /shop

Or to move your store from /shop to /

That'll be you sorted then.

All the best...

Conor
ceon

23 Feb 2010, 12:34 AM
#1194
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)

conor:

Hi,

That .htaccess file is fine.

What isn't is that you have your shop in the /shop directory but you are also trying to have / as the shop.. I don't know how you've done that but as DivaVocals says, why would you want the home page of your shop to be **BOTH **/ and /shop ?

You'll need to rework your site so that / isn't your shop.

Or to redirect / to /shop

Or to move your store from /shop to /

That'll be you sorted then.

All the best...

Conor
ceon
My suggestion is to move the whole daggone thing to the root directory.. If the shop IS the SITE, then the whole thing needs to be in the root PERIOD.. There is no need for a /shop directory

23 Feb 2010, 8:59 AM
#1195
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

DivaVocals:

My suggestion is to move the whole daggone thing to the root directory.. If the shop IS the SITE, then the whole thing needs to be in the root PERIOD.. There is no need for a /shop directory

I agree with that! :)

All the best...

Conor
ceon

1 Mar 2010, 11:51 AM
#1196
sieg01 avatar

sieg01

New Zenner

Join Date:
Dec 2008
Posts:
21
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello Conor!

I have exacly the same problem mentioned here:
http://www.zen-cart.com/forum/showpost.php?p=813316&postcount=849

How did you solve that?

We are using version: 3.2.4
In our case the language switch worked fine for several weeks and since some hour ago we have this phenomenon and only with one category.
The language switchs with all the other categories and languages work fine.

Thank you!

sieg01

1 Mar 2010, 12:20 PM
#1197
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

sieg01:

The language switchs with all the other categories and languages work fine.

I mentioned this in a previous post but this thread's so long now it's hard to find things! I'll probably start a new thread after the next release...

Basically I've rewritten the language support for the next version of the module. I'll release the new version whenever I can get the time to package it up.

All the best...

Conor
ceon

2 Mar 2010, 8:17 AM
#1198
afirst avatar

afirst

New Zenner

Join Date:
Mar 2010
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hello,

My Zen cart version is 1.3.8a, and use this module ceon uri mapping seo, everything is fine, I saw my EZ-page is successfully to change in short name, but also broking links!

Is this problem relative to the "Rewrite on problem" , Any person can help!

Thank you
######## Leung

3 Mar 2010, 6:10 AM
#1199
thevagr1 avatar

thevagr1

New Zenner

Join Date:
May 2009
Location:
Melbourne, Australia
Posts:
46
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hey Conor,
Thanks for creating this module!!
I have uploaded everything and it is in my modukle section in the admin, so thats all OK.
I am going through the set up procedure and am stuck on altering the htaccess files.

I am hosted with yahoo and they dont let htaccess files up on the site.
So when it comes to adding re-write. I have no idea what to do.
I spent all day working out how to dowlnload Apache so that is done. Is there any way you can help me sort this. I am assuming tha I HAVE TO RE-WRITE

cheers
Renate

3 Mar 2010, 9:05 AM
#1200
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

thevagr1:

I am hosted with yahoo and they dont let htaccess files up on the site.

Glad you like the software!

To use the module you must be able to modify your VirtualHost directive or add the rules to a .htaccess file.

If your hosting doesn't support either of those technologies you must move hosts!

It's worth the effort to move if your host is so basic you don't have access to either of the above!

Hope that helps!

All the best...

Conor
ceon