[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo
#6461
Posted 26 March 2012 - 03:00 PM
#6462
Posted 26 March 2012 - 04:44 PM
zandapro, on 26 March 2012 - 03:00 PM, said:
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6463
Posted 26 March 2012 - 10:17 PM
#6464
Posted 27 March 2012 - 12:52 PM
http://tartamia.com/index-os.php
its a fatal error: file not found of the seo.class.php > in the includes/classes/seo.class.php
the permission in the file is chmod at 555, so no one is allowed to write in it or do anything.. and it keeps deleting itself!
any ideas??
#6465
Posted 27 March 2012 - 01:04 PM
#6466
Posted 28 March 2012 - 12:32 PM
I've got lots of categories with a maximum category depth of 3, e.g. like this:
-> House (=Main_Cat)
--> Room (=Sub_Cat)
---> Window (=Sub_Sub_Cat)
The SEO-URLs Contribution i've installed (V2.1) generated the following URLs
To House: domain.com/house-c-1.html
To Room: domain.com/house-room-c-1_2.html
To Window: domain.com/room-window-c-1_2_3.html
The New contribution (V2.2) generates:
To House: domain.com/house-c-1.html
To Room: domain.com/house-room-c-1_2.html
To Window: domain.com/house-window-c-1_2_3.html
So i counldnt use the newest version ofthe contribution since a lot of important categories would have been rewritten to new URLs.
Now i tried to replace the Rewrite functions from the newest version in my older version 2.1, which mostly works.
But 2 Problems:
1) the separators (if should be present) are left out at all categories URLs.
2) category depth 3: instead of rewriting to domain.com/room-window-c-1_2_3.html it rewrites to domain.com/houseroomwindow-c-1_2_3.html.
My individual problem could be located in the function need_redirect().
if ($this->attributes['SEO_ADD_CAT_PARENT'] != 'true') {
if (strpos($cID, "_") !== FALSE) { //test for sub-category
$parts = explode("_", $cID);
$cID = $parts[count($parts) - 1];
}
if ($this->attributes['USE_SEO_PERFORMANCE_CHECK'] == 'true') $this->performance['NUMBER_QUERIES']++;
$sqlCmd = $this->attributes['USE_SEO_HEADER_TAGS'] == 'true' ? 'LOWER(categories_htc_title_tag) as cName' : 'LOWER(categories_name) as cName';
$sql = "SELECT " . $sqlCmd . "
FROM ".TABLE_CATEGORIES_DESCRIPTION."
WHERE categories_id='".(int)$cID."'
AND language_id='".(int)$this->languages_id."'
LIMIT 1";
$result = $this->DB->FetchArray( $this->DB->Query( $sql ) );
$cName = $result['cName'];
} else {
[....]
How could i rewrite the code that it'll behave like before?
Or maybe it'd be easier for me, to adapt the code in the newest version of this contribution? Must be one or two lines.
Edited by ABit, 28 March 2012 - 12:46 PM.
#6467
Posted 28 March 2012 - 01:05 PM
ABit, on 28 March 2012 - 12:32 PM, said:
I've got lots of categories with a maximum category depth of 3, e.g. like this:
-> House (=Main_Cat)
--> Room (=Sub_Cat)
---> Window (=Sub_Sub_Cat)
The SEO-URLs Contribution i've installed (V2.1) generated the following URLs
To House: domain.com/house-c-1.html
To Room: domain.com/house-room-c-1_2.html
To Window: domain.com/room-window-c-1_2_3.html
The New contribution (V2.2) generates:
To House: domain.com/house-c-1.html
To Room: domain.com/house-room-c-1_2.html
To Window: domain.com/house-window-c-1_2_3.html
So i counldnt use the newest version ofthe contribution since a lot of important categories would have been rewritten to new URLs.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6468
Posted 28 March 2012 - 01:30 PM
Unfortunately it is already set to "true".
I'd have to change the code, that it uses the current category plus one category below for the URLs. Then we've got exactly what i had before.
In the new Version, it uses the main category plus the current subcategory.
Where in the code could i do that?
Thanks again for your reply Jack.
#6469
Posted 28 March 2012 - 05:29 PM
ABit, on 28 March 2012 - 01:30 PM, said:
Thanks again for your reply Jack.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6470
Posted 28 March 2012 - 10:31 PM
#6471
Posted 29 March 2012 - 07:21 PM
The contribution Independent SEO URL Validation (for ULTIMATE SEO URLs) did the trick:
http://addons.oscommerce.com/info/5738
#6472
Posted 29 March 2012 - 10:24 PM
ABit, on 29 March 2012 - 07:21 PM, said:
The contribution Independent SEO URL Validation (for ULTIMATE SEO URLs) did the trick:
http://addons.oscommerce.com/info/5738
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6473
Posted 30 March 2012 - 04:22 AM
My remark was just meant for users, who intend to upgrade from a very old version to the newer ones.
In this case plus having a category depth of 3 or more, the category URLs would change like described.
This would finally lead to a decrease in the "almighty google-ranking".
So unfortunately i had to keep the old version and added the "validation contribution".
Of course it is a special case, but still should be mentioned for users who have their SEO-URLs unchanged in the google-index since years.
#6474
Posted 30 March 2012 - 06:56 AM
I installed V2.2d of this contribution. Store is installed at:
http://174.121.37.99/~maple/order/
(We're setting it up before transferring the domain name, hence the IP address.)
Here's my .htaccess:
# $Id$
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
#<IfModule mod_setenvif.c>
# <IfDefine SSL>
# SetEnvIf User-Agent ".*MSIE.*" \
# nokeepalive ssl-unclean-shutdown \
# downgrade-1.0 force-response-1.0
# </IfDefine>
#</IfModule>
# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
# AcceptPathInfo On
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
# php_value session.use_trans_sid 0
# php_value register_globals 1
# Begin Ultimate SEO V2.2d
Options +FollowSymLinks
RewriteEngine On
# RewriteBase instructions
# Change RewriteBase dependent on how your shop is accessed as below.
# http://www.mysite.com = RewriteBase /
# http://www.mysite.com/catalog/ = RewriteBase /catalog/
# http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
# Change the following line using the instructions above
RewriteBase /order/
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d
And here's my config (with database stuff removed):
define('HTTP_SERVER', 'http://174.121.37.99/~maple');
define('HTTPS_SERVER', 'https://secure585.websitewelcome.com/~maple');
define('ENABLE_SSL', true);
define('HTTP_COOKIE_DOMAIN', 'http://174.121.37.99/~maple');
define('HTTPS_COOKIE_DOMAIN', 'secure585.websitewelcome.com/~maple');
define('HTTP_COOKIE_PATH', '/order/');
define('HTTPS_COOKIE_PATH', '/order/');
define('DIR_WS_HTTP_CATALOG', '/order/');
define('DIR_WS_HTTPS_CATALOG', '/order/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/maple/public_html/order/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'removed');
define('DB_SERVER_PASSWORD', 'removed');
define('DB_DATABASE', 'removed');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
I'm hoping that it isn't some stupid mistake; I don't want to waste your time. But I've researched the daylights out of this problem and am stuck. Please help?
#6475
Posted 30 March 2012 - 01:24 PM
LaliaTK, on 30 March 2012 - 06:56 AM, said:
I installed V2.2d of this contribution. Store is installed at:
define('HTTP_COOKIE_DOMAIN', 'http://174.121.37.99/~maple');
I'm hoping that it isn't some stupid mistake; I don't want to waste your time. But I've researched the daylights out of this problem and am stuck. Please help?
Options +FollowSymLinksand depending upon your hosting environment, the above should be
define('HTTP_COOKIE_DOMAIN', '.174.121.37.99/~maple');
or
define('HTTP_COOKIE_DOMAIN', '');
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6476
Posted 30 March 2012 - 07:10 PM
Any other suggestions? In case it matters, we're on HostGator.
Edited by LaliaTK, 30 March 2012 - 07:11 PM.
#6477
Posted 31 March 2012 - 12:26 AM
LaliaTK, on 30 March 2012 - 07:10 PM, said:
Any other suggestions? In case it matters, we're on HostGator.
define('HTTP_COOKIE_DOMAIN', '.174.121.37.99/~maple/order');
It's not usually needed but may be in your case but many times it won't work with the IP. You just have to leave it turned off until the domain is made active.
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking
#6478
Posted 31 March 2012 - 02:41 AM
Thank you VERY MUCH for your help, I really appreciate it.
#6479
Posted 12 April 2012 - 09:30 AM
I've installed Ultimate SEO URLs v2.2 about a year ago. Everything worked fine until i decided do set character conversions. The problem is that after setting them (in my example - ó=>o,ł=>l....) all available links on page are still missing converted characters.
For example - the link should lead to "olowek-p-15.html" instead of "owek-p-15.html" as it does. Both pages - "owek" and "olowek" exist. Even "olwek", "oowek".
Setting on "enable automatic redirects" makes some strange results. All links still appear in old form, but main categories are redirected corectly.
Ex. Link "okolicznościowe" leads to "okolicznosciowe" not okolicznociowe, but it doesn't work with subcategories (broken redirect) and products - still leading to old pages ("owek").
I tried enabling/disabling cache, clearing it and some other things.
It's first problem that seems to be difficult to solve by myself after installing some contributions so I'd really appreciate some tips about what to do with this matter, or where to search for solution. I have checked this topic before, but couldn't find similiar problem.
Mariusz
#6480
Posted 12 April 2012 - 01:22 PM
Marius_R, on 12 April 2012 - 09:30 AM, said:
For example - the link should lead to "olowek-p-15.html" instead of "owek-p-15.html" as it does. Both pages - "owek" and "olowek" exist. Even "olwek", "oowek".
Setting on "enable automatic redirects" makes some strange results. All links still appear in old form, but main categories are redirected corectly.
Ex. Link "okolicznościowe" leads to "okolicznosciowe" not okolicznociowe, but it doesn't work with subcategories (broken redirect) and products - still leading to old pages ("owek").
Most Important: Header Tags SEO - Ultimate SEO V 2.2d
All SEO Addons: Recommended SEO Addons
Support Links:
Finding relevant link exchanges - Headers Already Sent - What does it cost? -What's my version? - How to change titles? - Preventing HotLinking









