Well here goes nothing. I tried reading thru previous posts and googling to find an answer to this but had no luck. Hopefully someone here knows the answer.
I have version 3.83 of SSU installed and rev18 of module manager installed. I have these installed on both a dev and a prod site. The dev server is accessed by a direct IP, the prod site is a direct thru the www url for the site.
So here's my issue, on the prod site the /cache/ssu folders is HUGE!! So large that deleting the data takes forever, I have taken to renaming the file to /cache_bak when issues arise and just creating a new /cache.
Yesterday, I did this and all my links worked perfectly. Today I come in and 3 or 4 of my categories redirect me back to the home page. I renamed the cache folder again, created a blank new one and then the category links worked again. So confused. I don't want to delete these every night, and have set up the cron job to run nightly, but I'd really like to know what is causing this issue.
SEO config settings:
Hide default language identifier true
Set Category Separator / Info
Set Auto Alias Status true Info
Set SSU Multi Language Status true Info
Set Query Key's Exclude List zenid,gclid,number_of_uploads,number_of_downloads,action,sort,page,disp_order,fi lter_id,alpha_filter_id,currency Info
Set SSU Status true Info
Set maximum name length 0 Info
Set minimum word length 0 Info
Set Link Alias Status true Info
Exclude list advanced_search_result,redirect,popup_image_additional,download,wordpress Info
Set max category level 4 Info
Name delimiter - Info
ID delimiter - Info
File extension Info
Cache reset time 1271350090 Info
.htaccess file -
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
#### EOF SSU
#redirec www to non www
rewritecond %{HTTP_HOST} ^coinmerc\.com$
RewriteRule (.*) http://www.coinmerc.com/$1 [R=301,L]
Redirect /cart http://www.coinmerc.com
There are several serious errors in that .htaccess file.
1. Don't mix Redirect and RewriteRule in the same file. Convert the Redirect rule to use RewriteRule syntax with the [R=301,L] flags.
2. List the 'single' page external redirect as the very first item.
3. List the non-www to www external redirect after the single page redirect.
4. List the internal rewrites after the redirects.
If the order is incorrect, as it is now, then you risk exposing rewritten internal filepaths back out on to the web as new URLs and/or introducing unwanted redirection chains for non-canonical URL requests.
This is important stuff. Incorrect implementation can kill both your indexing and ranking in SERPs, and see your traffic dry up.
See also: http://www.zen-cart.com/forum/showthread.php?t=151606
Last edited by g1smd; 15 Apr 2010 at 09:58 PM.
Thank you so much for your reply. This is all completely foreign to me. I did read your link and am still a little confused.
Is this correct:
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteRule ^/cart /
rewritecond %{HTTP_HOST} ^coinmerc\.com$
RewriteRule (.*) http://www.coinmerc.com/$1 [R=301,L]
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
#### EOF SSU
How about this:
ErrorDocument 404 /index.php?main_page=page_not_found
RewriteEngine On
# Canonical Redirect non-blank, non-www and/or appended port number to www [EXCLUDE /admin requests]
RewriteCond %{HTTP_HOST} !^(www\.coinmerc\.com)?$
RewriteCond %{REQUEST_URI} !^/admin [NC]
RewriteRule (.*) http://www.coinmerc.com/$1 [R=301,L]
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteBase /
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
#### EOF SSU
I believe it has everything except a redirect when they are following old links with the /cart after the domain name.
i have this weird problem
in product listing page, the page navigation links, 2 3 4 5,
the link are correct, like http://test.local/test-cate?sort=20a&page=2
however, after click it become
http://test.local/air-jordan-1-i?sort=20a&page=2-p-36
and page 3 become
http://test.local/air-jordan-1-i?sort=20a&page=2-p-37
thus i can not view the other pages
ssu 3.7.1
zen cart 1.38a
@alicia130
The logic order of the second attempt was correct (page redirect, general non-www redirect, rewrites) but the code could do with some improvements.
The code in the third attempt was much more robust, however it was simply missingor similar, as the very first rule.Code:RewriteRule ^cart http://example.com/ [R=301,L]
Let's take a closer look at that single line of code. Is that very first rule supposed to be "moving" a store from the folder to root?
That code as you have it now would redirect example.com/cart/index.php?parameter=value to example.com/?parameter=value which would cause problems - because the index.php part of the new URL would be missing.
Does it need to preserve the path and/or parameter values in that redirect?
If it does not need to preserve the path and parameters, then changing http://example.com to be http://example.com/? would simply clear the parameter values instead.
If it does need to preserve the path and parameters, there's more detailed code for that in: http://www.zen-cart.com/forum/showth...=150620&page=2 here (which also fixes other issues at the same time too).
Once the user is requesting the correct URL, only then do you attempt to serve the content.
To be clear about the terminology:
Redirects (code with domain name and [R=301,L] in) tell the browser to make a new request for a new URL. The user sees the URL in the URL bar of their browser change.
Rewrites (code with just a server-internal filepath and [L] flag) connect a URL request with a non-default internal filepath to find and serve the page content at the currently requested URL.
Hi
I've got a cart I'm trying to fix some errors on. Problems with simple seo manager is one issue. The cart version shows 1.3.8a with database patch level 1.3.9a (not sure why that is)
I've been looking through files and found a current version file and it says version 8|Beta 3.4.5
In admin extras > simple seo manager
this error is showing
1062 Duplicate entry 'SSU_EXCLUDE_LIST' for key 2
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Exclude list', 'SSU_EXCLUDE_LIST', 'advanced_search_result,redirect,popup_image_additional,download,wordpress', 'Set the list of pages that should be excluded from using seo style links, separated by comma with no blank space. Do not change this if you are not sure what you are doing', @t4, 1, NOW(), NOW(), NULL, NULL);]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
also one debug log has this error
[04-Mar-2011 17:27:51] PHP Warning: urlencode() expects parameter 1 to be string, array given in /home/username/public_html/includes/classes/ssu/cores/link.php on line 186
I'm searching around looking for a starting point. Any suggestions appreciated.
<QUOTE>Re: Simple SEO URL [support thread]
--------------------------------------------------------------------------------
Quote:
Originally Posted by securit
I have a question with regards to Simple SEO and disk space.
On a zencart 1.3.8a install with Simple SEO v3.8.3 I am seeing that the cache directory is huge. the ssu directory is 43.91 MB in size which is more than double the disk of the rest of the site including all images. This seems crazy to me.
Is this really what I should be expecting or do I need to dig deeper.
I am having this issue with a client now. her cache folder is 1.6GB! HELP!
</QUOTE>
Sorry, I've had absolutely 0 response to this issue.
I'm about to redeploy on the 1.3.9a release of Zencart minus this contribution as I've had so many problems with it.
Last edited by securit; 21 Apr 2010 at 02:34 AM. Reason: didnt really refer back to previous post.
OK, so i reset the cache and had to physically delete it from file manager as it is so large. 10,000+ products over 200+ cats. Now the product URLS work and are auto-aliased perfectly (we'll see if google agrees), BUT the categories are not getting aliased. SSU status is set to true, auto alias is on, and alias status is on.