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

Results 2,661 to 2,680 of 5,058
13 Mar 2009, 4:06 AM
#2661
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

yellow1912:

Open includes/init_includes/init_ssu.php

You will find this line:
while (substr($link, -1) == '/') $link = substr($link, 0, -1);

Add below it:
$link .= "$link/";

This quick fix should force the trailing slash you wanted.

I'm trying to add a trailing slash to my URLs, but this info seems to be outdated, as I can't find that line in init_ssu.php. Where should I look?

Thanks,
-Arianne

13 Mar 2009, 4:07 AM
#2662
yellow1912 avatar

yellow1912

Totally Zenned

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

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

includes/classes/ssu/cores/link.php

13 Mar 2009, 4:35 AM
#2663
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

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

Perfect! In link.php, I added a trailing slash successfully by finding this line:

$link = str_replace('/?', '?', $link);

and adding this below it:

$link .= "/";

Could anyone give me a tip on how to force a slash when someone links to or types in a URL without one? I ask because /blog/ works great for me, but /blog with no trailing slash gives an error ("Warning: Cannot modify header information - headers already sent by...").

13 Mar 2009, 4:55 AM
#2664
samhuang avatar

samhuang

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

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

Hi everyone.
SSU version is Beta 3.6.6
my site www.rchobbycn.com was hosted by bluehost.com

my site SSU configration is

Set minimum word length 0
Set Link Alias Status false
Exclude list advanced_search_result,redirect,popup_image_additional,download,wordpress,tell_a_friend,checkout_shipping,shopping_cart
Set max category level 2
Name delimiter -
ID delimiter -
File extension
Set SSU Status true
Set SSU Multi Language Status false
Set maximum name length 0
Set Query Key's Exclude List zenid,gclid,number_of_uploads,number_of_downloads,action,sort,page,disp_order,filter_id,alpha_filter_id
Set Auto Alias Status false
Set Category Separator /
Set default language identifier true

I have try to reset all the cache
But my shopping cart and advanced_search_result can't work.
it said: Page Not Found

Any help will be appreciated.

13 Mar 2009, 5:45 AM
#2665
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Do you have the content of your htaccess? Can you post here? Just a feeling but I suspect you used some other seo module before and have some info left in the htaccess.

13 Mar 2009, 5:55 AM
#2666
samhuang avatar

samhuang

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

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

my .htaccess content is

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 /

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

I didn't install other seo module.
I just upgrade from SSU 3.5.8 to SSU 3.6.6. SSU 3.5.8 work, but after upgrade, didn't work.

THE shopping_cart and advansed_search_result URL IS

http://www.rchobbycn.com/advanced_search_result.html and
http://www.rchobbycn.com/shopping_cart.html

13 Mar 2009, 5:59 AM
#2667
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Your File extension is currently null, so it would be weird that ssu adds html to it.
On top of that, you have: advanced_search_result in the exclude list as well, so SSU would not do any redirection on this page (but your site is doing that)

Pretty weird if you ask me. Do you have any other seo module installed, or perhaps installed before and was not completely removed?

Did you follow: http://wiki.rubikintegration.com/zencart/modules/ssu/upgrade ?

Maybe rechecking if all files are uploaded correctly, and SSU cache is cleared, and all sql patches applied

13 Mar 2009, 6:06 AM
#2668
samhuang avatar

samhuang

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

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

I just installed previous version simple_seo_url_rev235, but it work for me. After upgrade to simple_seo_url_3-5-8, didnt' work, then upgrade to ssu 3.6.6, also didn't work. so i don't know what happened.

13 Mar 2009, 6:12 AM
#2669
yellow1912 avatar

yellow1912

Totally Zenned

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

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

I would try to make sure all the files are uploaded correctly first.
You can not have extension in the link if you do not define it in the setting.

You can see the demo of latest ssu here:
http://demo.rubikintegration.com/ssu/

If you want, pm me a temporary admin and ftp info, I can help you to check.

BTW, my Avast reported a sign of trojan when I was browsing your site, not sure if that is a coincident or not. You may want to check for any malicious script on the site

13 Mar 2009, 6:13 AM
#2670
yellow1912 avatar

yellow1912

Totally Zenned

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

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

@samhuang: I checked your site on google, and it was clear to me that you were using Ultimate Seo Url which is different from this module, this may be the root of the problem you are facing.

13 Mar 2009, 6:17 AM
#2671
samhuang avatar

samhuang

New Zenner

Join Date:
Oct 2006
Posts:
24
Plugin Contributions:
0

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

:flex: I installed the ultimate_seo_urls, now i remove the ultimate_seo_urls. the SSU work now.

THKS yellow1912

14 Mar 2009, 8:06 AM
#2672
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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

Hi Yellow,

Thanks for the great mod. I had one question for you and it deals with the Ask a Question mod and this one. so if you can't help, I completely understand.

I am using a custom product type so the url created appears as:

(my site)/product_ring_info <- the name of the custom product type

However, when a customer uses the Ask a Question mod, in the email we receive, the url that links back to the product leaves out the product type. Therefore when we follow the url it doesn't work (eventually we get a redirect error and a blank screen).

Are you familiar enough with the Ask a Question mod to know how the url is generated?

P.S. Its not on my site listed below, but I can post a link to the new site if you want see the Ask a question mod in action

14 Mar 2009, 8:14 AM
#2673
yellow1912 avatar

yellow1912

Totally Zenned

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

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

If it uses a custom product type, you can tell SSU about that product type

Which version are you using? For 3+ please look into includes/classes/ssu/config.php and see how the product type is configured. Now edit the local.config.php in the same folder and add your new product type, example:

<?php
/**
* @package Pages
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: local.config.php.example 149 2009-03-04 05:23:35Z yellow1912 $
*/
    
    $ssuLocalConfig = array(
        'identifiers'    =>    array(    'products'        =>    array(    'new_product_info'                    =>    'new'))
    );
```'new_product_info': your new product type
'new': identifier in the link, doesnt have to be a single letter.
14 Mar 2009, 9:14 PM
#2674
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

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

yellow1912:

Possible, you will have to use link-alias. However, it's not done automatically yet, so if you have a limited number of categories/products it will be easy, but if you have too many it will take lots of time.
Less than 3 months ago, and this has been implemented + automated. Seriously, you're amazing yellow. :clap:

Some of my product categories contain more than 10 items, which pushes it to page 2 and makes the URL partially ugly. Is there a setting in ZC to specify how many products are listed on each page of the category?

14 Mar 2009, 9:17 PM
#2675
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Yes, you can. I believe it is under admin - config - product listing for the category listing pages.

Also, check http://wiki.rubikintegration.com/zencart/modules/ssu/config and make sure you have put all the exclude items in place.

14 Mar 2009, 10:47 PM
#2676
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

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

yellow1912:

Yes, you can. I believe it is under admin - config - product listing for the category listing pages.

Also, check http://wiki.rubikintegration.com/zencart/modules/ssu/config and make sure you have put all the exclude items in place.
All the exclude items were already in place.

Still have not been able to find where to increase the number of products listed per category.

14 Mar 2009, 10:55 PM
#2677
yellow1912 avatar

yellow1912

Totally Zenned

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

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

bobthemolder:

All the exclude items were already in place.

Still have not been able to find where to increase the number of products listed per category.
How about admin/configuration.php?gID=3

14 Mar 2009, 11:37 PM
#2678
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

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

yellow1912:

How about admin/configuration.php?gID=3
Yeah that was it --
bunyip:

Admin > Configuration > Maximum Values > Products Listing- Number Per Page
I think I'm finally ready to take my zencart subdirectory off the block list for robots :flex:

15 Mar 2009, 11:43 PM
#2679
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

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

yellow1912:

If it uses a custom product type, you can tell SSU about that product type

Thanks for the fast response.

I recently installed it so I believe we are using the most recent version.

I did exactly like you stated and created the local.config.php with the following info

<?php
/**
* @package Pages
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: local.config.php.example 149 2009-03-04 05:23:35Z yellow1912 $
*/
    
    $ssuLocalConfig = array(
        'identifiers'    =>    array(    'products'        =>    array(    'product_ring_info'                    =>    'pr'))
    ); 

But when I save it, it strips away the: /product_ring_info/ from the product url, it still shows -p- at the end of the url, and it gives me a redirect error.

Is there something else I need to edit?

Thanks in advance for your help.

16 Mar 2009, 12:01 AM
#2680
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 SSU cache after the edit? And if possible can you pm me the link to this page?