Re: Simple SEO URL [support thread]
Hopefully this is an easy one.. :smile:
I'm creating a Zen Cart site with SSU Beta 2.9.6, but right now the site is only accessible via the IP/~username .. like
http://SERVER-IP/~username/
Before adding SSU, the store worked, so I'm sure I have the paths correct in the 2 /include/configure.php files , but after adding SSU all I get is the defined ZC 404 page, even on the home page ..
I have the
RewriteBase /~username/ in the .htaccess file
and
define('HTTP_SERVER', 'http://SERVER-IP/~username/');
in the /include/configure.php file
and that is apparently correct, since the links appear to point to the right place, but everything gives the ZC 404 page ..
http://SERVER-IP/~username/index.php redirects, losing index.php and serves the 404
Oddly a category page like ...
http://SERVER-IP/~username/category-name-c-5
shows the correct category names and links in the breadcrumb, but the page still shows the 404 text and sitemap
I tried adding the cgi.fix_pathinfo = 1 to php.ini (as well as php5.ini) but didn't see any change, flushing the SEO cache after every change.
Any ideas ?
Re: Simple SEO URL [support thread]
You configure.php setting is incorrect. I believe the documents go with this package has a portion that explains how to correctly config it.
Sorry cant help you more for now, Im on the go.
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
dewed
Hopefully this is an easy one.. :smile:
I'm creating a Zen Cart site with SSU Beta 2.9.6, but right now the site is only accessible via the IP/~username .. like
http://SERVER-IP/~username/
Before adding SSU, the store worked, so I'm sure I have the paths correct in the 2 /include/configure.php files , but after adding SSU all I get is the defined ZC 404 page, even on the home page ..
I have the
RewriteBase /~username/ in the .htaccess file
and
define('HTTP_SERVER', 'http://SERVER-IP/~username/');
in the /include/configure.php file
and that is apparently correct, since the links appear to point to the right place, but everything gives the ZC 404 page ..
http://SERVER-IP/~username/index.php redirects, losing index.php and serves the 404
Oddly a category page like ...
http://SERVER-IP/~username/category-name-c-5
shows the correct category names and links in the breadcrumb, but the page still shows the 404 text and sitemap
I tried adding the cgi.fix_pathinfo = 1 to php.ini (as well as php5.ini) but didn't see any change, flushing the SEO cache after every change.
Any ideas ?
Code:
define('HTTP_SERVER', 'http://www.site.com/subfolder');
define('HTTPS_SERVER', 'https://secure.site.com/~username/subfolder');
This may work in the normal ZC setting, but it will cause SSU to malfunction. You need to set like this:
Code:
define('HTTP_SERVER', 'http://www.site.com');
define('HTTPS_SERVER', 'https://secure.site.com');
define('DIR_WS_CATALOG', '/subfolder/');
define('DIR_WS_HTTPS_CATALOG', '/~username/subfolder/');
So basically, the http ones should contain only the domain name, no sub folders at all.
Re: Simple SEO URL [support thread]
Hello Yellow,
Thanks again for cool mod :D
I have a couple of questions (ver.2.9.6):
1. When I add
PHP Code:
//bof simple seo url
$ssu=new simple_seo_url();
$ssu->set_category_name($categories_id);
//eof simple seo url
in admin-categories.php I have error when I try to change directory : Fatal error: Call to undefined method simple_seo_url::set_category_name() in /home2/mutagtv/public_html/bestfashion/admin/categories.php on line 238
Try with 0ff ssu, on ssu and clear cashe.
2. I use Points and Reward Full site mod, when SSU is off I can see reward points in product page info:
http://www.laptop.gg/index.php?main_...roducts_id=827
when I turn it on, its disappear:
http://www.bestfashion.me/skirts-c-4...ith-ties-p-827
3. I use also xml google site map, all pages in english like: tops-c-8/silver-print-sun-orange-top-p-542/ Google eat very well, but with other language like: /%D0%BF%D0%BB%D0%B0%D1%82%D1%8C%D1%8F-c-3/deep-blue-ruffle-lace-dress-p-222/language/ru I have error for all 900 pages in google Webmaster Tools
Please help me resolve this problems :smile:
Re: Simple SEO URL [support thread]
//bof simple seo url
$ssu=new simple_seo_url();
$ssu->set_category_name($categories_id);
//eof simple seo url
-->remove it for now, this is out of date. I will update the instruction in the next coming version, sorry for the problem
2. I use Points and Reward Full site mod, when SSU is off I can see reward points in product page info:
http://www.laptop.gg/index.php?main_...roducts_id=827
when I turn it on, its disappear:
http://www.bestfashion.me/skirts-c-4...ith-ties-p-827
I see what you mean. I suspect that this module attaches itself to auto_loads before the SSU module has a chance to parse url.
Or it's just some problem with the way it catches the products_id not working well with SSU. This should be a simple fix. Which Reward point is being used?
3. Problem with languages has been mentioned, it was due to the way the non latin, unicode language is parsed. This is being worked on. In the mean time, do you want to use english names for these links?
Re: Simple SEO URL [support thread]
For reward point, if you are using the module I think you are using, then go to
tpl_product_reward_points.php
Edit, and replace
$_REQUEST['products_id']
by
$_GET['products_id']
You will need to replace at 2 locations I think
Re: Simple SEO URL [support thread]
To answer the question regarding language handling, I will repost something posted with more explanation:
Quote:
Thank you. And I'm glad to announce that there is a hot fix now for sites that support Russian language.
It may not be perfect yet, but at least it will display the category name on the link clearly.
HOWEVER, HOWEVER, there IS a drawback: it does work on FF, it just does not work on IE (we use the same encoding technique wiki uses, see
http://ru.wikipedia.org/wiki)
And also, because it is encoded this way, it may NOT help with search engine.
Anyhow, this is update is recommended for those who support multi-langs.
I think in the next version I will give you another option here: you can tell SSU to always use english names.
I'm also open to suggestion here, if you have experience working with utf-8 url please share it here.
Anyhow, non-latin languages are very tricky to properly parse and put on url. So I'm open for any suggestion.
Also, in the mean time:
The language parsing classes are moved to includes/classes/ssu/languages/ so you can customize the way you want to parse names (assuming that you are comfortable with php)
The default.php is used for all languages, the language_code.php (such as ru.php) is used for a specific language only.
On another issue, Im also considering taking Magic Seo Url 's approach, so for sites with multi-languages you will have links like this:
http://site.com/en/usual_link_here
http://site.com/ru/usual_link_here
With this approach, the language codes(en, ru, cn, ...) will always appear in all links on these sites. To those who will be affected by this change, do you prefer it that way? (if you have only 1 language on your site, dont worry about it, your links will stay the same.)
Re: Simple SEO URL [support thread]
Thank you Yellow for quick answers.
1. I delete it from admin-categories.php, now its works.
2. I change also tpl_product_reward_points.php and now reward appear :clap:
3. I think it will be best way and easy for users http://site.com/en/usual_link_here,
instead http://site.com/usual_link_here /language/ru.
4.
Quote:
but at least it will display the category name
Please tell me is it possible change manually the category name?
Because when I write down link in russian in address bar, SSU work and I got the page,in all browsers.
I try to changed it in cache/ssu/categories/4_ru
was %D0%AE%D0%91%D0%9A%D0%98-c-4 I changed it with utf-8 notepad+ to russian: ЮБКИ-c-4. But its show same in IE7 :%D0%AE%D0%91%D0%9A%D0%98-c-4.
Thanks
Re: Simple SEO URL [support thread]
If you dont have too many categories, the experiment version in my signature has a feature called link-alias
You can also edit includes/classes/ssu/languages/ru.php to change the way the links are parsed.
On a side note, can you go to phpmyadmin, and see how the russian names are stored, and copy 1 name here? Just for reference.
Re: Simple SEO URL [support thread]
Quote:
Please tell me is it possible change manually the category name?
Because when I write down link in russian in address bar, SSU work and I got the page,in all browsers.
I try to changed it in cache/ssu/categories/4_ru
was %D0%AE%D0%91%D0%9A%D0%98-c-4 I changed it with utf-8 notepad+ to russian: ЮБКИ-c-4. But its show same in IE7 :%D0%AE%D0%91%D0%9A%D0%98-c-4.
Thanks
Also go to cache/ssu/pc/ and delete all files in there, now the new change will be reflectedon the url.