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

Results 1,461 to 1,480 of 5,058
27 Nov 2008, 12:45 AM
#1461
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

nagelkruid:

Starting up xamp, this may become a long night :cool:
It looks great in the test.
Although i gave myself a hard time as in a long time ago i removed extra from the menu as i didnt think i was ever gonna use it :lookaroun and after finally remembering that i put the $za_contents[] link in the tools menu which did clarify alot hehe :cool:

Unfortunately my provider has mod_rewrite off so ill probably have to wait another day or 2 to go life and test paypal IPN as well.

Thanks anyway, mod looks great.
Jeroen

27 Nov 2008, 12:42 PM
#1462
hitch avatar

hitch

New Zenner

Join Date:
Sep 2006
Posts:
75
Plugin Contributions:
0

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

Hi all,

My host is switching to Nginx which requires me rewriting the Simple SEO URL .htaccess file rules to the rewrite rules that work with Nginx. There seem to be ready made ones for others cms's but not zenart yet and i'm out of my depth. Anyone out there speak that language?

Thanks

28 Nov 2008, 8:42 AM
#1463
yellow1912 avatar

yellow1912

Totally Zenned

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

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

hitch:

Hi all,

My host is switching to Nginx which requires me rewriting the Simple SEO URL .htaccess file rules to the rewrite rules that work with Nginx. There seem to be ready made ones for others cms's but not zenart yet and i'm out of my depth. Anyone out there speak that language?

Thanks
Maybe your host can help. Don't forget to post the solution once you found it.

28 Nov 2008, 9:31 AM
#1464
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

nagelkruid:

Unfortunately my provider has mod_rewrite off so ill probably have to wait another day or 2 to go life and test paypal IPN as well.
Jeroen
My privider did have mod_rewrite on but he said follow symlinks wasn't supported in .htaccess on that version of apache.
They have now activated it globally for me so i went ahead and activated ssu last night.

Actually i just wanted to make a quick live test, but i was so happy with the results, i couldn't turn it off any more :smile:

IPN paypal no glitch at all, al the settings are untouched and it returns to the success page without any problems, so i don't know the other problems with it, but here it hasn't been an issue.

In fact all the internal -not so beautiful- links are all working i don't have to change a thing.

Just posting these results, maybe someone can benefit from it, have to say i am a very happy camper, thanks!

Few questions i have remain in optimising i hope you can provide me with a few good pointers once more :blush:

  • are there any good recommendations on how i could sanitize/optimise my URL's so they are both very user friendly and contain keywords i like? ie. is it wise/unwise/lost effort to alias my categories so they won't show the c-139 part? (and maybe even add a word or two i like for that category)

  • i noticed my ezpages get resolved like so: pages-title-page-1/chapter/1, i had the impression it should resolve to the actual title of the ez-page, is that going wrong or is it future design i am talking about :P

  • should i change the IPN links to the new names?
    (as it is working, i kinda like it when it works hehe ;)

Cheers,
Jeroen

28 Nov 2008, 9:39 AM
#1465
yellow1912 avatar

yellow1912

Totally Zenned

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

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

  • are there any good recommendations on how i could sanitize/optimise my URL's so they are both very user friendly and contain keywords i like? ie. is it wise/unwise/lost effort to alias my categories so they won't show the c-139 part? (and maybe even add a word or two i like for that category)
    Some users insist on removing that part, I dont see the point tho. While it may make the links look nice, it wont have any seo effect. On another hand, if you think adding a few words make more sense for your users, then go ahead.

  • i noticed my ezpages get resolved like so: pages-title-page-1/chapter/1, i had the impression it should resolve to the actual title of the ez-page, is that going wrong or is it future design i am talking about :p
    It should use the title of the ezpage like this:
    http://demo.rubikintegration.com/zencart/shared-page-6
    ("shared" is the name, -page- is the identifier)
    Feel free to change the identifier in the config file, or using alias to get a nicer name. SSU link alias is most useful in cases like this, you can create an ezpage, and then give it a nice alias and you will get a link like:
    http://demo.rubikintegration.com/zencart/conditions-of-use

  • should i change the IPN links to the new names?
    (as it is working, i kinda like it when it works hehe ;)
    Dont change it if it is working well.

28 Nov 2008, 9:40 AM
#1466
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

Ow yeah lets keep up the tradition of the forgotton question :ohmy:
actually this question has been in my mind for a long time and doesn't really relate to ssu but i'll shoot anyway, you can always ignore it:

If i go to my main domain without the www it works, if i know which page i want to go on my site and remove the www it works as well. However, when i click anywhere after i did that it will add the www to the address that i go to.

so main page is http://myshop.domain, if i click on the goto shop button it will goto http://www.myshop.domain/shop/

btw. it will also add a slash to the domain name although in both cases i am not rewriting anything to accomplish that.

So the question i have is, is that behaviour good enough and how it should be or should i still add the rewrite so it will immediatly rewrite any address without the www to an url containing it?

And if i do have to add it, should it be a seperate .htaccess in the root? (as i have placed yous in the /shop/ directory)

:thumbsup:

28 Nov 2008, 9:50 AM
#1467
yellow1912 avatar

yellow1912

Totally Zenned

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

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

You should be consistent, use either www or non-www throughout the page.

This is very important for seo purpose, plus when you get SSL cert www and nonwww are different.
so www.site.com and site.com are considered 2 different entities

Once you decide to go with one, then check your includes/configure.php to make sure you are telling zencart to use the correct one.
You should also google for htaccess commands to redirect from www to nonwww or vice versa.

htaccess for ssu should be placed in the store root, while the htaccess to rewrite www/nonwww redirection may be placed in the site's root.

If I can get a good htaccess redirection example I will post it here.

28 Nov 2008, 9:57 AM
#1468
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

[quote=yellow1912;648298]- i noticed my ezpages get resolved like so: pages-title-page-1/chapter/1, i had the impression it should resolve to the actual title of the ez-page, is that going wrong or is it future design i am talking about :p
It should use the title of the ezpage like this:
http://demo.rubikintegration.com/zencart/shared-page-6
("shared" is the name, -page- is the identifier)
Feel free to change the identifier in the config file, or using alias to get a nicer name. SSU link alias is most useful in cases like this, you can create an ezpage, and then give it a nice alias and you will get a link like:
http://demo.rubikintegration.com/zencart/conditions-of-use

Ok, i would like to use it as it is the designed and only goto the aliasses if i want to explicitly change it, but apparently it is currently not resolving the actual title of that page.
The actual title of that page is "who are we", so if i understand you correctly it should resolve to who-are-we-page-1/chapter/1 ?
If that is so i would like it to perform like designed, as my shop is working in the dutch language, is it possible it cant resolve the name because of that?
Which config file should i start looking to begin shooting at this?

Cheers,
jeroen

28 Nov 2008, 10:01 AM
#1469
yellow1912 avatar

yellow1912

Totally Zenned

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

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

It is possible that it is looking for the appropriate page name yet it couldnt find it for some reason. Do you use ezpage multi language plugin btw?

I will write a fallback method (if it cant find the title in the current language, it should fall back to the default one), and i will publish that later tomorrow.

Regards

28 Nov 2008, 10:03 AM
#1470
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

yellow1912:

If I can get a good htaccess redirection example I will post it here.

No worries, you allready have it documented here http://wiki.rubikintegration.com/zencart/modules/ssu/for_users/www_and_nonwww :P

Thats why my question came up again hehe.
Now that i got your comment i will add that to a .htaccess in my root, as indeed ssl is also rising on my wish-list...

28 Nov 2008, 10:08 AM
#1471
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

yellow1912:

It is possible that it is looking for the appropriate page name yet it couldnt find it for some reason. Do you use ezpage multi language plugin btw?

I will write a fallback method (if it cant find the title in the current language, it should fall back to the default one), and i will public that later tomorrow.

Regards
Nope, didn't do anything fancy with the ez-pages yet and there is no plugin, it should all be very default. My shop has only dutch enabled, no english option.
I will, however, begin to create alot of the ezpages, so if it could resolve the actual title that would be perfect.

If i can help-out in any way or provide more details i'll be happy too. I am not a Guru on php, but i can work my way in it to a fair level.

28 Nov 2008, 10:48 AM
#1473
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

yellow1912:

For now, this should fix your problem:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=113

Can you also go into your phpmyadmin and export the content of the table "ezpages" and table "languages" then post it here? That will be of great help

-- phpMyAdmin SQL Dump
-- version 2.9.1.1
-- http://www.phpmyadmin.net
-- 
-- Host: localhost
-- Generatie Tijd: 28 Nov 2008 om 11:34
-- Server versie: 5.0.33
-- PHP Versie: 5.2.1
-- 
-- Database: `-`
-- 

-- --------------------------------------------------------

-- 
-- Tabel structuur voor tabel `ezpages`
-- 

CREATE TABLE `ezpages` (
  `pages_id` int(11) NOT NULL auto_increment,
  `languages_id` int(11) NOT NULL default '1',
  `pages_title` varchar(64) collate utf8_unicode_ci NOT NULL,
  `alt_url` varchar(255) collate utf8_unicode_ci NOT NULL,
  `alt_url_external` varchar(255) collate utf8_unicode_ci NOT NULL,
  `pages_html_text` mediumtext collate utf8_unicode_ci,
  `status_header` int(1) NOT NULL default '1',
  `status_sidebox` int(1) NOT NULL default '1',
  `status_footer` int(1) NOT NULL default '1',
  `status_toc` int(1) NOT NULL default '1',
  `header_sort_order` int(3) NOT NULL default '0',
  `sidebox_sort_order` int(3) NOT NULL default '0',
  `footer_sort_order` int(3) NOT NULL default '0',
  `toc_sort_order` int(3) NOT NULL default '0',
  `page_open_new_window` int(1) NOT NULL default '0',
  `page_is_ssl` int(1) NOT NULL default '0',
  `toc_chapter` int(11) NOT NULL default '0',
  PRIMARY KEY  (`pages_id`),
  KEY `idx_lang_id_zen` (`languages_id`),
  KEY `idx_ezp_status_header_zen` (`status_header`),
  KEY `idx_ezp_status_sidebox_zen` (`status_sidebox`),
  KEY `idx_ezp_status_footer_zen` (`status_footer`),
  KEY `idx_ezp_status_toc_zen` (`status_toc`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ;

-- 
-- Gegevens worden uitgevoerd voor tabel `ezpages`
-- 

INSERT INTO `ezpages` (`pages_id`, `languages_id`, `pages_title`, `alt_url`, `alt_url_external`, `pages_html_text`, 

`status_header`, `status_sidebox`, `status_footer`, `status_toc`, `header_sort_order`, `sidebox_sort_order`, 

`footer_sort_order`, `toc_sort_order`, `page_open_new_window`, `page_is_ssl`, `toc_chapter`) VALUES 
(1, 1, 'Wie zijn wij', '', '', '<p style="font-family: tahoma,arial,helvetica,sans-serif;"><font size="2">\r\nHallo en 

hartelijk welkom bij blablabla alot of text stripped" />', 0, 1, 1, 1, 3, 1, 2, 1, 0, 0, 1),
(2, 1, 'fotopagina', '', '', '<p><span style="font-family: tahoma,arial,helvetica,sans-serif;">een tweede 

foto</span></p><p><span style="font-family: tahoma,arial,helvetica,sans-serif;"></span><br /></p><img src="stripped" />', 0, 

0, 0, 1, 0, 0, 0, 2, 0, 0, 1),
(3, 1, 'externe links fabrikanten feeders', '', '', '<p>Externe links & Feeders waarmee verbonden is<br /><br /> <a 

title="Opgenomen in WebFeeder" href="http://www.webfeeder.nl/" target="_blank"><img style="width: 100px; height: 18px;" 

src="http://static.webfeeder.nl/images/misc/addedon.gif" border="0" alt="Opgenomen in WebFeeder" /></a></p>\r\n<p><a 

href="http://www.geekyspeaky.com">GeekySpeaky: Submit Your Site!</a></p>\r\n<p> </p>\r\n<p><a title="webgids" 

href="http://www.spinnenweb.nl"> Spinnenweb Webgids</a></p>', 0, 0, 0, 0, 0, 0, 995, 995, 0, 0, 9955),
(4, 1, 'Dushi', '', '', '<h3>Welkom in de wereld van Dushi blabla alot of text.</p>', 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 2),
(5, 1, 'Over onze merken', '', '', '<p>Hier volgt wat meer informatoe over onze leveranciers en hun producten.</p>', 0, 0, 0, 

1, 0, 0, 5, 1, 0, 0, 2),
(6, 1, 'Over de betalingsmogelijkheden', '', '', '<p>Hier volgt wat meer informatie over de betalingsmogelijkheden</p>', 0, 

0, 0, 1, 0, 0, 9, 1, 0, 0, 3),
(7, 1, 'iDEAL', '', '', '<p>Hier volgt een uitleg over iDEAL</p>', 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 3),
(8, 1, 'Vooruit betalen', '', '', '<p>Hier volgt informatie over vooruit betalen</p>', 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 3),
(9, 1, 'PayPal', '', '', '<p>Hier volgt informatie over betalen met PayPal</p>', 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 3),
(10, 1, 'leidsleuks', '', 'http://www.coolsite.nl', '', 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 1);



and


-- phpMyAdmin SQL Dump
-- version 2.9.1.1
-- http://www.phpmyadmin.net
-- 
-- Host: localhost
-- Generatie Tijd: 28 Nov 2008 om 11:34
-- Server versie: 5.0.33
-- PHP Versie: 5.2.1
-- 
-- Database: `-`
-- 

-- --------------------------------------------------------

-- 
-- Tabel structuur voor tabel `languages`
-- 

CREATE TABLE `languages` (
  `languages_id` int(11) NOT NULL auto_increment,
  `name` varchar(32) collate utf8_unicode_ci NOT NULL,
  `code` char(2) collate utf8_unicode_ci NOT NULL,
  `image` varchar(64) collate utf8_unicode_ci default NULL,
  `directory` varchar(32) collate utf8_unicode_ci default NULL,
  `sort_order` int(3) default NULL,
  PRIMARY KEY  (`languages_id`),
  KEY `idx_languages_name_zen` (`name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ;

-- 
-- Gegevens worden uitgevoerd voor tabel `languages`
-- 

INSERT INTO `languages` (`languages_id`, `name`, `code`, `image`, `directory`, `sort_order`) VALUES 
(2, 'Nederlands', 'NL', 'icon.gif', 'dutch', 0);
28 Nov 2008, 11:07 AM
#1474
yellow1912 avatar

yellow1912

Totally Zenned

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

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

Thank you, now I know why ^_^. I will release a fix for that soon.
It's looking for page title with language id 2, so obviously it will not find any.

28 Nov 2008, 12:05 PM
#1475
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

yellow1912:

Thank you, now I know why ^_^. I will release a fix for that soon.
It's looking for page title with language id 2, so obviously it will not find any.
Ah yes, i can see that now :)
If that can be easily fixed within ssu that would be great, although i see i have to think about making my easy pages create pages with language id 2 instead of 1 as well. (the mod you suggested will probably give extra input text fields which i don't really want/need for this shop) That's why i decided to remove the languange english as a whole to get it out of the product input fields as well and just have 1 input field for the dutch language.

28 Nov 2008, 1:33 PM
#1476
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

btw. now that you are looking at languages anyway :)
when i am going to the specials i can see it gets resolved to winkel/specials but that page is actually named winkel/aanbiedingen
that is probably very close to what you are looking at right now?

another thing i see is when i look in who's online i see alot of people browsing these lovely url's of which i now know where they are :D but i also noticed a lot of those get ammended the favicon.ico behind it. like so: /shop/category-c-1_10/favicon.ico
if i click on the link i simply get the correct page, not sure if this is only who's online page prob? (pretty sure didn't see those before the mod)

28 Nov 2008, 2:11 PM
#1477
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

nagelkruid:

btw. now that you are looking at languages anyway :)
when i am going to the specials i can see it gets resolved to winkel/specials but that page is actually named winkel/aanbiedingen
that is probably very close to what you are looking at right now?
Nah, thats unfair, these were also so named before off course and names are derived from the actual filename. Forget i mentioned this. This is were aliases would be great if i should so desire.

28 Nov 2008, 4:06 PM
#1478
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

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

sorry mate, got 1 more q.
i noticed my additional images are popping up without an image.
looking to replace jscript_dynamic_window_popup.js but i don't have such thing in my includes.
also nu luck tpl_popup_image_additional.php

any idea where i need to look for this one?

28 Nov 2008, 6:59 PM
#1479
yellow1912 avatar

yellow1912

Totally Zenned

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

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

nagelkruid:

sorry mate, got 1 more q.
i noticed my additional images are popping up without an image.
looking to replace jscript_dynamic_window_popup.js but i don't have such thing in my includes.
also nu luck tpl_popup_image_additional.php

any idea where i need to look for this one?
This one is pretty simple, in ssu setting just put the additional image page in the exclude page list (I dont remember the exact page name, but if you check the additional image link you will see it is site.com/something/......, that "something" is what you want.

28 Nov 2008, 7:15 PM
#1480
yellow1912 avatar

yellow1912

Totally Zenned

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

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

nagelkruid:

btw. now that you are looking at languages anyway :)
when i am going to the specials i can see it gets resolved to winkel/specials but that page is actually named winkel/aanbiedingen
that is probably very close to what you are looking at right now?

another thing i see is when i look in who's online i see alot of people browsing these lovely url's of which i now know where they are :D but i also noticed a lot of those get ammended the favicon.ico behind it. like so: /shop/category-c-1_10/favicon.ico
if i click on the link i simply get the correct page, not sure if this is only who's online page prob? (pretty sure didn't see those before the mod)

For favicon, just go into includes/templates/your_template/common/html_header.php

Starting from around line 34 you will see:

<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />

Replace that by:

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />

<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>

You can see that we simple switch the location of the 2 parts.