Re: Simple SEO URL [support thread]
Hi there
I am trying to pimp my links manually which works pretty well for category and product links:
E.g. I can hypotetically replace myshop.com/product_aaa by myshop.com/product_bbb by setting the config file as follows....
/includes/classes/ssu/local.config.php
Code:
$ssuLocalConfig = array(
'plugins' => array(
'parsers' => array('manufacturers', 'news_articles')
),
'languages' => array( 'fr' => 'default',
'ru' => 'ru',
)
);
... and finally defining the link name replacement as follows:
/includes/classes/ssu/plugins/languages/default.php
Code:
class SSULanguageDefault extends SSULanguage{
static function parseName($name){
$name = str_replace("product_aaa", "product_bbb", $name));
$name = strtolower($name);
... and so on....
But what I am no able to do is to replace the links I have in my INFORMATION BOX: shippinginfo, specials, contact_us etc. links!!!!
E.g. I want to replace myshop.com/index.php?main_page=specials by myshop.com/index.php?super_mega_specials
How can I do that? I have no clue!
I know that SSU automatically replaces myshop.com/index.php?main_page=specials by myshop.com/index.php?specials
=> But I want it to be 'super_mega_specials' :cool:
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
jamie951
How do you change these hta rules?
Your .htaccess file is the file you create and need to go in the folder that it needs to control. You needs to make sure it is setup correctly. Some people don't or don't know how to set it up correctly and that's why they have so many problems with the links or 500 errors.
keep in mind. Maybe to completely understand .htaccess stuff I want to clarify.
.htaccess need to go in the folder that it needs to control.
.htaccess RewriteBase or Base needs to be set relative to the folder structure of the domain. If installed in a sub directory of the domain, RewriteBase /subdir/
This has nothing to do with the root /public_html/ in your hosting account just with the location relative to the domains root.
Your domain root might be /public_html/mydomain but test zencart is installed /public_html/mydomain/testzen so .htaccess will be put in /public_html/mydomain/testzen but you have to set RewriteBase /testzen/
If just /public_html/mydomain/
it will be RewriteBase /
Every simple seo file and .htaccess needs to be under /public_html/mydomain/ to work. Hope this makes sense to you.
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
flix
Hi there
I am trying to pimp my links manually which works pretty well for category and product links:
E.g. I can hypotetically replace myshop.com/product_aaa by myshop.com/product_bbb by setting the config file as follows....
/includes/classes/ssu/local.config.php
Code:
$ssuLocalConfig = array(
'plugins' => array(
'parsers' => array('manufacturers', 'news_articles')
),
'languages' => array( 'fr' => 'default',
'ru' => 'ru',
)
);
... and finally defining the link name replacement as follows:
/includes/classes/ssu/plugins/languages/default.php
Code:
class SSULanguageDefault extends SSULanguage{
static function parseName($name){
$name = str_replace("product_aaa", "product_bbb", $name));
$name = strtolower($name);
... and so on....
But what I am no able to do is to replace the links I have in my INFORMATION BOX: shippinginfo, specials, contact_us etc. links!!!!
E.g. I want to replace myshop.com/index.php?main_page=specials by myshop.com/index.php?super_mega_specials
How can I do that? I have no clue!
I know that SSU automatically replaces myshop.com/index.php?main_page=specials by myshop.com/index.php?specials
=> But I want it to be 'super_mega_specials' :cool:
I probably can point you in the right direction.
includes/languages/Your_custom_folder/english.php
Find and replace with the name of your that you want to use.
PHP Code:
// specials box text in sideboxes/specials.php
define('BOX_HEADING_SPECIALS', 'Specials');
define('CATEGORIES_BOX_HEADING_SPECIALS','Specials ...');
Re: Simple SEO URL [support thread]
Hi Countrycharm
Thanks for your guidance!
Unfortunately, I did not find your mentioned file includes/languages/Your_custom_folder/english.php.
Instead I found includes/languages/english.php which includes the code lines you have mentioned.
In this file, I have changed the mentioned code lines to:
Code:
define('BOX_HEADING_SPECIALS', 'SpecialsXXX');
define('CATEGORIES_BOX_HEADING_SPECIALS','SpecialsXXX ...');
Unfortunately, this does not change the URL/link I see in the browser address but only the headings in my shop:
http://drphone.de/seo.jpg
Furthermore, I want to make the same kind of changes to the URLs that the user sees if he clicks on 'Shipping & Return', 'Conditions of use', etc.
I would expect that I have to change that somewhere in the SSU classes... maybe in one of the parsers? Or didn't I understand your guidance correctly and I am completely on the wrong track here?
Re: Simple SEO URL [support thread]
Thanks for your reply countrycharm.
I think I might go with one of these paid 'Zen cart help' SEO services that are available as this looks too complicated.
Re: Simple SEO URL [support thread]
I found the answer to my question:
Got to ZC Admin -> Extras -> SSU -> Manage Aliases
There, it is possible to change any static (i.e. non product/category name dependent) URLs by defining permanent aliases.
Therefore, I came to the following conclusions:
i) Changing individual (special) characters in dynamic (i.e. product/cat. name dependent) URLs: Use str_replace function in file /includes/classes/ssu/plugins/languages/default.php
ii) Changing static URLs e.g. defined by the file name of the page being called (e.g. shippinginfo.php => URL will be your_store/shippinginfo/: Use aliases via the ZC Admin to change these kinds of URLs
While i) is obviously perfectly multi-language compatible, I think that ii) does not work with multiple languages ;( Does anyone have a clue how I could success to have e.g. /shippinginfo for English users and /Versandinfo for German users etc.? I don't see any multi language support in the Alias part of SSU!?!?!?
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
flix
I found the answer to my question:
Got to ZC Admin -> Extras -> SSU -> Manage Aliases
There, it is possible to change any static (i.e. non product/category name dependent) URLs by defining permanent aliases.
Therefore, I came to the following conclusions:
i) Changing individual (special) characters in dynamic (i.e. product/cat. name dependent) URLs: Use str_replace function in file /includes/classes/ssu/plugins/languages/default.php
ii) Changing static URLs e.g. defined by the file name of the page being called (e.g. shippinginfo.php => URL will be your_store/shippinginfo/: Use aliases via the ZC Admin to change these kinds of URLs
While i) is obviously perfectly multi-language compatible, I think that ii) does not work with multiple languages ;( Does anyone have a clue how I could success to have e.g. /shippinginfo for English users and /Versandinfo for German users etc.? I don't see any multi language support in the Alias part of SSU!?!?!?
You may be able to get the author of the module to help you out. You can go here for more information.
trouble redirecting non-www to www using simple seo url
Hey guys,
I have tried various combinations in the htaccess file. At best I am able to make everything display, but break my cart... the "add to cart" button brings up my cart, but no products are added. At worst, my Zencart folder is ignored and it tries to redirect me to example.com/my-product-category-c1
Here are the contents of my htaccess file, without my attempts at non-www to www redirection. Would anyone be able to tell me how I can implement non-www to www redirection without breaking my shopping cart?
#### 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 /online_store/
# 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
If it matters, I do have non-www to www redirection working properly on the rest of the site, using htaccess in the root folder. It's just when I get into the Zencart folder, online_store, and it's custom .htaccess file that I run into trouble.
Does anyone know what I add to the code above to make it work?
Best Regards,
Daniel
Re: Simple SEO URL [support thread]
Great addon.
As a former tester - can I ask - has anyone done any actual real tine experiments here with Google. For example - get 2 identical sites or even just 2 product pages. One that has been SEO'd and the other just left as standard - and then look at the Google ratings to see which one gets A. more traffic and B gets rated higher by Google
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
zamtek
i have installed SSU to my zen cart and it generates URL too, but it always redirects to homepage. Can anyone help me with this??
Any solution for this? i got the right .htaccess, but the website is going to the homepage everytime. The url of all links are good.
I resetted the cache several times.
It works great at first. So for testing the site I disabled ssu. I installed the English language again (before default just one lang)
Use zc 139h ssu 3.8.5