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,818

Results 1,801 to 1,820 of 5,058
6 Jan 2009, 4:58 PM
#1802
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

Hi again!

OK, SSU is now accessible via my admin>extras!

But I am having trouble with the configuration instructions.

I am using ZC version 1.3.8a.

What does this part of the instructions mean??

WARNING:

A. If your path_to_store/.htaccess file is not blank, do NOT overwrite it. Open that file and append the following lines:

BOF SSU

Options +FollowSymLinks
RewriteEngine On

Change "/zencart/ to the correct setting

if your site is located at root folder, then you should have RewriteBase /

Go to your include/configure.php, this value should be the same with the value of DIR_WS_CATALOG

RewriteBase /zencart/

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]

RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L]

EOF SSU

Sorry, I am completely dumb at this.:lamo:

I have not done what has been specified above, I am assuming it is essential....!

Any guidance please?

Thanks

Paul

6 Jan 2009, 5:01 PM
#1803
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Paul, that .htaccess file should be placed at your zencart store root folder.

SSU 3+ goes with a file called ssu_check.php which can be accessed at http://linktoyourstore/ssu_check.php, which will suggest the correct content of .htaccess

If you read that instruction part slowly, maybe you will get it? If you dont, please list the specific part you dont get.

6 Jan 2009, 5:51 PM
#1804
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

yellow1912:

Paul, that .htaccess file should be placed at your zencart store root folder.

SSU 3+ goes with a file called ssu_check.php which can be accessed at http://linktoyourstore/ssu_check.php, which will suggest the correct content of .htaccess

If you read that instruction part slowly, maybe you will get it? If you dont, please list the specific part you dont get.

Hi Yellow, Thanks for your reply.

OK, where do I get the .htaccess file from? There is one in mystore.co.uk/admin/.htaccess

There is also a .htaccess in the zip file for SSU. Is it either of those, or are they the same file?

Once I have the file I just move it to mystore.co.uk/.htaccess ?

Thanks for your patience!

Paul

6 Jan 2009, 5:54 PM
#1805
yellow1912 avatar

yellow1912

Totally Zenned

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

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

The files in the package are in the correct folders already. So if you see a file .htaccess in the store folder (not in the admin), then it's supposed to be in the store folder.

If you re-read the instruction carefully:

If you already have .htaccessin the store folder, then append the lines to the current file

If you dont, you can safely upload the new file.

After that, you have to change the RewriteBase /zencart/ as instructed.

6 Jan 2009, 6:23 PM
#1806
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

yellow1912:

The files in the package are in the correct folders already. So if you see a file .htaccess in the store folder (not in the admin), then it's supposed to be in the store folder.

If you re-read the instruction carefully:

If you already have .htaccessin the store folder, then append the lines to the current file

If you dont, you can safely upload the new file.

After that, you have to change the RewriteBase /zencart/ as instructed.

Ok, I looked in my store/root folder and I do not have a .htaccess file. So I moved the .htaccess file over from the SSU zip file to my store folder. I guess this was wrong as when I tried to log in to my admin, I got:

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
https://www.rcmonster.co.uk
Tue Jan 6 18:16:33 2009
Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 mod_ssl/2.0.54 OpenSSL/0.9.7e

:frusty:

So I deleted the .htaccess from the store folder and I can now log in again.

The contents of the .htaccess file I added was:

BOF SSU

Options +FollowSymLinks -MultiViews
RewriteEngine On

Make sure to change "test_site" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /

RewriteBase /zencart/

Deny access from .htaccess

RewriteRule ^.htaccess$ - [F]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]

EOF SSU

I am really lost here. I do not understand the instructions. What does 'append' mean?

Maybe I can't see .htaccess as I moved all the files manually from the SSU zip to the folders on my server? Maybe I need to reinstall?

Thanks:smile:

Paul

6 Jan 2009, 6:24 PM
#1807
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Append means to add below, or to add after.

You have the error because you have not changed this line as instructed:

Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /

RewriteBase /zencart/

6 Jan 2009, 6:35 PM
#1808
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

yellow1912:

Append means to add below, or to add after.

You have the error because you have not changed this line as instructed:

Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /

RewriteBase /zencart/

pm'd you.

6 Jan 2009, 9:20 PM
#1809
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

Hi Yellow,

When I tried to add an alias, the top of the screen came up with messages:

Error /home/www/rcmonster.co.uk/cache/ssu/aliases folder is not writable
Error /home/www/rcmonster.co.uk/cache/ssu/pc folder is not writable

I followed the pathways and could not find any SSU folder in cache, so I created one and an ALIASES and PC folder.

Unfortunately not working tho.

Sorry.

Paul

6 Jan 2009, 10:11 PM
#1810
yellow1912 avatar

yellow1912

Totally Zenned

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

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

This means you have not uploaded all the required folders in cache/ to your site, and have not set the correct permission for them.

I uploaded for you, you can check again

Raine

6 Jan 2009, 10:18 PM
#1811
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

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

Works perfect now Raine!

Thanks again:hug:

You can have your thread back now:laugh:

Paul

7 Jan 2009, 2:53 PM
#1812
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

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

Hey Guys,

Is there any way to disable the page number from showing up at the end of EZ page urls? I don't see a setting in config for it.

What about changing the delimeter to an underscore to match up with standardized way zen does it? How would you go about doing that change?

7 Jan 2009, 3:05 PM
#1813
yellow1912 avatar

yellow1912

Totally Zenned

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

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

swamyg1:

Hey Guys,

Is there any way to disable the page number from showing up at the end of EZ page urls? I don't see a setting in config for it.

What about changing the delimeter to an underscore to match up with standardized way zen does it? How would you go about doing that change?

  1. Please use link alias for that purpose
  2. You can also use link alias. And there was no option for _ because in the past Google did not treat _ as 'space', so this_is is viewed a thisis. I will add that option in the next version.
7 Jan 2009, 9:05 PM
#1814
danilovig avatar

danilovig

New Zenner

Join Date:
Nov 2007
Posts:
65
Plugin Contributions:
0

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

To translate texts for example ñ -> n, or ó -> o in url, there is any place to form it...

Thanks

8 Jan 2009, 8:50 AM
#1816
danilovig avatar

danilovig

New Zenner

Join Date:
Nov 2007
Posts:
65
Plugin Contributions:
0

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

Gives me the following error :

Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /var/www/mainada.es/datos/web/demo_bebe/includes/classes/ssu/cores/link.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /var/www/mainada.es/datos/web/demo_bebe/includes/classes/ssu/cores/link.php:34) in /var/www/mainada.es/datos/web/demo_bebe/includes/classes/ssu/cores/link.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /var/www/mainada.es/datos/web/demo_bebe/includes/classes/ssu/cores/link.php:34) in /var/www/mainada.es/datos/web/demo_bebe/includes/classes/ssu/cores/link.php on line 176

version: 3.5.5
Set SSU Multi Language Status=true

/includes/classes/ssu/plugins/languages/es.php

<?php
  	// note: we can later move part of this function into sub-functions, which we can store in the base class.
	class SSULanguageRu extends SSULanguage{
		static $registry;
		
		static function parseName($name){
			$cyrillic = array("ñ",  "á",  "é", "í",  "ó", "ú");
     		
			$translit = array("n", "a", "e", "i", "o",  "u");
			
			$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'));
		}
	}

includes/classes/ssu/local.config.php

<?php $ssuLocalConfig = array(
'plugins'        =>    array('parsers'    =>    array('manufacturers')),
    'identifiers'    =>    array('mf'    =>    'manufacturers'),
    'languages'        =>    array( 'es'    =>    'default'));
?>

Thanks

yellow1912:

http://wiki.rubikintegration.com/zencart/modules/ssu/for_developers/parsers/language_parser

8 Jan 2009, 12:34 PM
#1817
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

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

I'm having a strange error when using Safari on PC.

When I visit the site all links are suffixed by "?zenid=a3bd5323lvn2i7qgvqfs964to2"

So the link to contact will be

website.com/contact?zenid=a3bd5323lvn2i7qgvqfs964to2

instead of

website.com/contact

If I click on one item, eg contact, then click on other items then ?zenid=a3bd5323lvn2i7qgvqfs964to2 dissappears.

The problem this is causing is when users logged into their account. If the ?zenid=a3bd5323lvn2i7qgvqfs964to2 is at the end of the url safari say it can't open the page as there are too many redirects.

Any ideas?

8 Jan 2009, 2:16 PM
#1818
yellow1912 avatar

yellow1912

Totally Zenned

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

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

zenid is attached to the url at the beginning is how it should be.

Can you explain the login error step by step? (how to duplicate it)

Regards

8 Jan 2009, 2:18 PM
#1819
yellow1912 avatar

yellow1912

Totally Zenned

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

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

@danilovig

On link.php line 34 you can try this:
if(empty($languages_code) || !array_key_exists($languages_code, SSUConfig::registry('languages')))

8 Jan 2009, 3:06 PM
#1820
danilovig avatar

danilovig

New Zenner

Join Date:
Nov 2007
Posts:
65
Plugin Contributions:
0

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

now not error, but I do not translate the characters

http://www.mainada.es/demo_bebe/es/el-ba-o-c-9

Thanks

yellow1912:

@danilovig

On link.php line 34 you can try this:
if(empty($languages_code) || !array_key_exists($languages_code, SSUConfig::registry('languages')))