Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,830

Results 2,541 to 2,560 of 5,058
26 Feb 2009, 1:17 PM
#2541
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

hi, this mod is really great !

but i've a problem with the characters é è ...

i modified the file local.config.php to

<?php
	
	$ssuLocalConfig = array(
		'plugins'		=>	array(
									'parsers'	=>	array('manufacturers')
								),
		
		'languages'		=>	array(	'fr'	=>	'fr',
                                                        'en'	=>	'en',
                                                        
									)
	);

and i add a file fr.php

<?php
      // note: we can later move part of this function into sub-functions, which we can store in the base class.
    class SSULanguageFr extends SSULanguage{
        static function parseName($name){
            $cyrillic = array("à",  "â",  "é", "è",  "ê");
             
            $translit = array("a", "a", "e", "e", "e");
            
            $name = str_replace($cyrillic, $translit, $name);
            
            $name = strtolower($name);
       
            // we replace any non alpha numeric characters by the name delimiter
            $name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name'));
            
            // Remove short words first
            $name = self::removeShortWords($name, SSUConfig::registry('configs', 'minimum_word_length'), SSUConfig::registry('delimiters', 'name'));
            
            // trim the sentence
            $name = self::trimLongName($name);
                    
            // remove excess SSUConfig::registry('delimiters', 'name')
            $name = self::removeDelimiter($name);
            
            // remove identifiers
            $name = self::removeIdentifiers($name);
            
            // remove trailing _
            $name = trim($name, SSUConfig::registry('delimiters', 'name'));
            
            return urlencode($name);
        }
    } 

but those characters é è are not replaced by e, they are still -

is there anything i missed ? :unsure:

btw, i use zen 1.38 and ssu 3.64

26 Feb 2009, 2:37 PM
#2542
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

hi, another question,
after installed ssu, there's a problem on my admin whos_online page, other things are fine except the "Last URL Viewed", now all those URLs only showing "/jscript", i cant see which page the customers are staying. (but for the bot google yahoo ... last url viewed works well, no problem)
i have some own js files for my site, it might be caused by conflicts with one of my js ?
i'm not sure how to fix it, any ideas ?

26 Feb 2009, 4:47 PM
#2543
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Did you clear cache?(extras->ssu manager)
Is your site using multiple languages or just 1?

myworld20091:

hi, this mod is really great !

but i've a problem with the characters é è ...

i modified the file local.config.php to

<?php $ssuLocalConfig = array( 'plugins' => array( 'parsers' => array('manufacturers') ), 'languages' => array( 'fr' => 'fr', 'en' => 'en', ) ); ```and i add a file fr.php > > ```php <?php // note: we can later move part of this function into sub-functions, which we can store in the base class. class SSULanguageFr extends SSULanguage{ static function parseName($name){ $cyrillic = array("à", "â", "é", "è", "ê"); $translit = array("a", "a", "e", "e", "e"); $name = str_replace($cyrillic, $translit, $name); $name = strtolower($name); // we replace any non alpha numeric characters by the name delimiter $name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name')); // Remove short words first $name = self::removeShortWords($name, SSUConfig::registry('configs', 'minimum_word_length'), SSUConfig::registry('delimiters', 'name')); // trim the sentence $name = self::trimLongName($name); // remove excess SSUConfig::registry('delimiters', 'name') $name = self::removeDelimiter($name); // remove identifiers $name = self::removeIdentifiers($name); // remove trailing _ $name = trim($name, SSUConfig::registry('delimiters', 'name')); return urlencode($name); } } ```but those characters é è are not replaced by e, they are still - > > is there anything i missed ? :unsure: > > btw, i use zen 1.38 and ssu 3.64
26 Feb 2009, 4:51 PM
#2544
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

barricades:

I've just realised that on the live site that I have SSU on I changed a categorys name a while back but since the instructions weren't fresh in my mind I didn't refresh the cache. It doesn't seem to have had any negative effect that I can spot in terms of actually working, in other words all the URLs say what they're supposed to without me resetting the cache. Is the negative effect therefore just a performance of server issue? Or does it have a bad effect on my sites ability to be spidered and indexed?

Cheers
Then it's no problem at all, dont worry about. Resetting cache is usually done because sometimes a change in the code will not be reflected in the links unless you do it.
So in your case, you changed the category names but you did not reset cache, i will assume that the link name will be that of the old category name. Nothing wrong with that, it will keep working. Next time you reset cache, the link name will be changed, and customers/spiders visiting old links will be redirected properly to new links

26 Feb 2009, 4:52 PM
#2545
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

myworld20091:

hi, another question,
after installed ssu, there's a problem on my admin whos_online page, other things are fine except the "Last URL Viewed", now all those URLs only showing "/jscript", i cant see which page the customers are staying. (but for the bot google yahoo ... last url viewed works well, no problem)
i have some own js files for my site, it might be caused by conflicts with one of my js ?
i'm not sure how to fix it, any ideas ?
I would assume something has gone wrong with the way you use js here, if you have the site url you can pm me or post here.

27 Feb 2009, 4:09 AM
#2546
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Did you clear cache?(extras->ssu manager)
Is your site using multiple languages or just 1?

yes, i did clear all cache from extras->ssu manager

i use multiple languages for my site, so i made fr.php en.php ... in the folder \includes\classes\ssu\plugins\languages

27 Feb 2009, 4:13 AM
#2547
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

myworld20091:

yes, i did clear all cache from extras->ssu manager

i use multiple languages for my site, so i made fr.php en.php ... in the folder \includes\classes\ssu\plugins\languages
Interesting. Is this a test site? I would like to peek into the server to find out what's going if it's okie with you, otherwise we can try some other things. Cant think of a reason why it doesnt work tho, you seem to do it correctly.

28 Feb 2009, 8:50 AM
#2548
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

i did a test, go to /includes/classes/ssu/cores/language.php , find

function removeNonAlphaNumeric($name, $name_delimiter){
return preg_replace("/[^a-zA-Z0-9]/", $name_delimiter, $name);

add
$name = str_replace("b","e", $name);

then i check the url, all the letters "b" replaced by "e".

but if i add
$name = str_replace("é","e", $name);

the character "é" still showing as "-"

28 Feb 2009, 9:21 AM
#2549
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

i love the alias functions, but if i set link alias status ture, when i change the site language, the url cant come back even if i change the language back.

what i mean is :

my default language is french, the url of one categories is
http://mydomain.com/zencart/fr/logiciel

if i change the site language to english, then the url is
http://mydomain.com/zencart/en/software

then i change the site language back to french, but the url is
http://mydomain.com/zencart/fr/software

i clear all caches, but doesnt work, in my admin alias functions, i find :
url /logiciel/ alias /software/
it automaticly genarates the alias

then i have to delete it manually, then it goes well. but for so many categories and products, i cant handle it like this.

is there anything i might set wrong ?

28 Feb 2009, 9:36 AM
#2550
myworld20091 avatar

myworld20091

New Zenner

Join Date:
Oct 2008
Posts:
85
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Interesting. Is this a test site? I would like to peek into the server to find out what's going if it's okie with you, otherwise we can try some other things. Cant think of a reason why it doesnt work tho, you seem to do it correctly.

i have pmed you

28 Feb 2009, 9:58 AM
#2551
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Sitemap question -

If it's been answered elsewhere, please redirect me - I couldn't find the answer, the thread is too long :)

I'm using SSU 3.6.0 and google sitemap 1.3

My problem is this -

my links on page show as this:

/lingerie/body-suits-lingerie/hot-suspender-bodysuit-with-matching-bra-top-p-653

but my links in my sitemap are showing as this:

/-c-0/hot-suspender-bodysuit-with-matching-bra-top-p-653

How do I get my Sitemap to have the structure that is on page?

Matt

28 Feb 2009, 11:57 AM
#2552
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

mprough:

The issue is that link juice and authority will not pass a double redirect and Google will not follow them either.

~Melanie

Side note:
Google (and others) are now following a new canonicalization tag that will help with situations like this. (trailing slash vs no trailing slash, etc)

http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

Matt

28 Feb 2009, 12:12 PM
#2553
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

kettlewell:

Sitemap question -

If it's been answered elsewhere, please redirect me - I couldn't find the answer, the thread is too long :)

I'm using SSU 3.6.0 and google sitemap 1.3

My problem is this -

my links on page show as this:

/lingerie/body-suits-lingerie/hot-suspender-bodysuit-with-matching-bra-top-p-653

but my links in my sitemap are showing as this:

/-c-0/hot-suspender-bodysuit-with-matching-bra-top-p-653

How do I get my Sitemap to have the structure that is on page?

Matt

I just realized that my search results are producing the same results as what is getting placed in the sitemaps -

so instead of my really pretty URL's, visitors are looking at

/-c-0/hot-suspender-bodysuit-with-matching-bra-top-p-653

Matt

28 Feb 2009, 1:30 PM
#2554
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Matt, clear all cache and also alias cache and see if it helps. Maybe your browser cache as well...

28 Feb 2009, 1:58 PM
#2555
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

No such luck! :)

I run a plugin that disables browser cache (just for this reason), and I've cleared out the SSU cache -

But still the same result.

based on your reply, I'm guessing that it should not be doing what I'm seeing?

matt

28 Feb 2009, 5:02 PM
#2556
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Very weird indeed, but i would recommend upgrading to 3.6.4 the clear cache to see if that solves the problem for you. If not please let me know.

kettlewell:

I just realized that my search results are producing the same results as what is getting placed in the sitemaps -

so instead of my really pretty URL's, visitors are looking at

/-c-0/hot-suspender-bodysuit-with-matching-bra-top-p-653

Matt

28 Feb 2009, 5:16 PM
#2557
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,284
Plugin Contributions:
37

Re: Simple SEO URL (OLD version) [support thread]

myworld20091:

i did a test, go to /includes/classes/ssu/cores/language.php , find

function removeNonAlphaNumeric($name, $name_delimiter){
return preg_replace("/[^a-zA-Z0-9]/", $name_delimiter, $name);

add
$name = str_replace("b","e", $name);

then i check the url, all the letters "b" replaced by "e".

but if i add
$name = str_replace("é","e", $name);

the character "é" still showing as "-"

In the snippet above have you tried using the proper ampersand for the é..... The ampersand is as follows

é

~Melanie

28 Feb 2009, 6:46 PM
#2558
kettlewell avatar

kettlewell

New Zenner

Join Date:
Sep 2008
Location:
Grand Junction, CO USA
Posts:
37
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

Very weird indeed, but i would recommend upgrading to 3.6.4 the clear cache to see if that solves the problem for you. If not please let me know.

OK... I upgraded to 3.6.4 - and am getting the same results :(

I found an error in the logs, but I don't think they are the problem directly, but maybe

The error I'm seeing is something like:

client denied by server configuration: httpdocs/admin/includes/templates/css/themes/steel/images/index.php, referer: http://www.domain.com/admin/includes/templates/css/themes/steel/grid.css

there doesn't appear to be an index.php file in the upload... I get this when I click the link "Manage Aliases" I get a header, but no way to do anything with it...

Any thoughts on if the two are related? or if there is something else I should be checking?

28 Feb 2009, 11:09 PM
#2559
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Yes, somehow the grid doesnt work on your server, just my wild guess but it could me files uploaded to the wrong place or wrong file permission setting. If you want I can peek in the server for you to checkout what's going on, PM me.

Raine

1 Mar 2009, 12:56 AM
#2560
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

@kettlewell

It seems like you used Easy Populate to import the products, and it somehow failed to set the correct category - product relationship, all I did was

  1. go to /admin/store_manager.php and Reset ALL Products Master Categories ID
  2. Clear SSU cache

For the problem with link alias manager not displaying any link, problem was that your php version does not support json_encode AND there was a bug in the json_encode alternative that comes with SSU

Also, I notice there is a caching problem, not all items are properly cached, I have updated cache class to ssu 3.6.5 which have this bug fixed for you. Now you have to delete all cache folders and we will see if things work out correct for you.