Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * - 2 votes

[Contribution] Ultimate SEO URLs - by Chemo


1938 replies to this topic

#1921 Toyz

  • Community Member
  • 18 posts
  • Real Name:Toyz

Posted 11 November 2008, 12:59

View PostCoopco, on Nov 11 2008, 12:51 PM, said:

I think you need something like

RewriteBase /directorynameabovecatalog/catalog/

That does the trick... it works now =P

#1922 Coopco

  • Community Member
  • 9,557 posts
  • Real Name:Leslie Cooper
  • Gender:Male
  • Location:Sea Lake, Victoria, Australia

Posted 11 November 2008, 13:14

I had to do the same thing under wamp.


The Coopco Underwear Shop



If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

#1923 edmond1815

  • Community Member
  • 57 posts
  • Real Name:Costin

Posted 24 November 2008, 20:12

I have same problem with local installed of oscommerce with Ultimate SEO contribution.

Online works great.
Offline, the main page, index works ok, but every link not working. (404 error)

htacces file looks like this:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}


I put :RewriteBase /Applications/MAMP/htdocs this is the location of the catalog, without succes.
I have MAMP, using Macintosh.


Any sugestions?

Edited by edmond1815, 24 November 2008, 20:12.


#1924 hozyali

  • Community Member
  • 3 posts
  • Real Name:HozyAli

Posted 20 December 2008, 09:24

Hello,

I need to change the url structure a little. Can someone help?

What I need is something like this
http://www.domain.com/categoryname/product-title

it should have no numeric IDs etc.

Please help.

thanks

#1925 pederb

  • Community Member
  • 357 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 20 December 2008, 16:28

Excuse a maybe stupid question, but how do you know if SEO is working on your site?

Is the URL that shows telling if its working or not?

Can someone look at My Site and tell me if it is working

Thank you
-Peder Beckman-
Kool Kat Jazz Records

#1926 Hunnenkoenig

  • Community Member
  • 108 posts
  • Real Name:Attila

Posted 20 December 2008, 19:53

Does anybody know, why my "buy button" doesn't work on product listing and advanced search results?

It didn't work also on the other pages and I managed to fix them, but on those pages, wher the url is built dynamically, it's uselss.

I get links, like "http://www.mysite.com/hardware-itemcategory-c-1_4.html?products_id=1&action=buy_now&sort=2a"

If I click this link, my shopping cart gets this: "http://www.mysite.com/shopping_cart.php?sort=2a"
And nothing is added to the cart.

Does anybody have a solution?

Edited by Hunnenkoenig, 20 December 2008, 19:53.


#1927 Hunnenkoenig

  • Community Member
  • 108 posts
  • Real Name:Attila

Posted 20 December 2008, 20:14

Ok, I realized that it's possibly not USU problem. If I disable USU, it doesn't work either.

#1928 catcher55

  • Community Member
  • 13 posts
  • Real Name:art

Posted 25 December 2008, 18:45

Hello!

I'd like to know if this mod will work with multilanguage website? Will it change urls for all languages?

Thanks

#1929 andenand

  • Community Member
  • 10 posts
  • Real Name:Anders

Posted 25 December 2008, 20:24

Hi

not a user of the contribution (yet), as I´m also looking at: http://addons.oscommerce.com/info/2796 - "Seach Engine Friendly URL"
Here the category is added in the URL before the product id, seems like a cool feature in my head.

I´m leaning a bit towards going with the above contribution instead of Ultimate SEO urls - can someone change my mind, or have I made the right choice? :)

Its damn hard to choose - I have tested both, and both work very well, looking at what I see then "Seach Engine Friendly URL" have an advantage as the category is included in the URL...

Anyone got some input for me on this one?

#1930 andenand

  • Community Member
  • 10 posts
  • Real Name:Anders

Posted 25 December 2008, 21:28

View Postcatcher55, on Dec 25 2008, 07:45 PM, said:

Hello!

I'd like to know if this mod will work with multilanguage website? Will it change urls for all languages?

Thanks

Read the text on the contribution?

#1931 george-davis

  • Community Member
  • 8 posts
  • Real Name:george davis

Posted 04 January 2009, 03:57

View PostBabygurgles, on Dec 19 2007, 11:24 AM, said:

Neater fix/hack to the sort functions not working when using seo.class.php version 2-2.2e

This should leave the validation functionality working unless there is a sort going on whereby validation is bypassed.

Please note this is still a hack and hopefully a new version will be forthcoming that will deal with the "sort= querystring" within the validation code.


Find ..

	if ((@strpos($parts[count($parts) - 2], $type)) !== FALSE)  //make sure it is the correct type for this link
	{

Replace with ..

// Commented out to bypass validation when sort= exists in the querystring
//	if ((@strpos($parts[count($parts) - 2], $type)) !== FALSE)  //make sure it is the correct type for this link
//	{
// HACK - replaces above code
	if ( ((@strpos($parts[count($parts) - 2], $type)) !== FALSE) && (($sort_exists = strpos($origUrl, "sort=") == FALSE)) ) //make sure it is the correct type for this link
	{
// END HACK


hi, i have version MS-2.2. i've tried searching for the string you supplied, but i can't find it. am i a dutz or in version 2.2 should i be looking for, and replacing 'other' code?

thanks for the information.. just to let you know, i have some keywords that are on page one Google.

george

#1932 alcova

  • Community Member
  • 55 posts
  • Real Name:Stefano
  • Gender:Male

Posted 08 March 2009, 03:07

sorry if this topic has been discussed before, but I've searched the thread and couldn't find an answer.
I'd like to add the product model to the url.

how can this be done?

#1933 mayers2007

  • Community Member
  • 8 posts
  • Real Name:Matthew

Posted 11 March 2009, 18:22

Instead of sorting through 97 pages on this contribution I wanted to quickly ask... Installed the contribution fine, I think that is. The Add cPath to product URL's? in the admin panel seems to not work.

Displays as /category-c-XXX.html

I want to display as /category.html

Thanks !

#1934 g7star

  • Community Member
  • 22 posts
  • Real Name:Daniel Kim

Posted 17 July 2009, 15:36

Hi, I recently updated Ultimate SEO to v2.7 from v2.2.2. Everything works great but I don't want the manufacturer displayed in the URL line. I disabled the Enable manufacturers cache? option but it still shows the manufacturer as long as I enable SEO URLs. Am I missing something?

Edited by g7star, 17 July 2009, 15:37.


#1935 smacsloo

  • Community Member
  • 8 posts
  • Real Name:smacsloo

Posted 30 August 2009, 22:56

hi - cant take your question but having another one. i installed the contribution - lets say good work. i used latest release to update - but since that time of use i hardcoded the shop so much. now i dont know where my string is being replaced. i searched the seo.class.php but seems to be correct. also the '.htacces' is right. i followed the instructions as well.

example:

shopurl.com/productongivencategoryisbroken-c-001.html should be
shopurl.com/product-on-given-category-is-broken-c-001.html

i already activated 'add cPath' in configuration menu.
this also happens to product names with spaces. the spaces not being replaced, they just got outta space.
i found this on seo.class.php on line1808 - 1823:
"$anchor = ereg_replace($pattern, '-', $anchor);" wich isnt replaced right in my case. i know its my hardcoded stuff. can anyone help me out to get "-" back
what have im done? i know its not directly in seo.class.php, perhaps in /includes/functions/html_output.php or general.php file.

pls help

#1936 airdee

  • Community Member
  • 18 posts
  • Real Name:airdee
  • Gender:Male

Posted 31 August 2009, 00:54

Certain parameters such as 'page=', 'cPath=' and 'keywords=' were not passed when clicking pagination links. Is there a way to resolve this issue? I tried the solution below from year 2007 posting but did not effect anything


function requested_page()
{
$protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://';
$current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : '');
$current_page = substr($current_page, strlen(HTTP_SERVER));
if (($pos = strpos($current_page, "?osCsid")) !== FALSE)
$current_page = substr($current_page, 0, $pos).'<br>';
if ($current_page[0] == "/")
$current_page = substr($current_page, 1);
return $current_page;
Now
return $return;
" There are two things to aim at in life; first to get what you want, and after that to enjoy it. Only the wisest of mankind has achieved the second. " -Logan Pearsall Smith \m/

#1937 smacsloo

  • Community Member
  • 8 posts
  • Real Name:smacsloo

Posted 31 August 2009, 13:32

View Postsmacsloo, on Aug 31 2009, 12:56 AM, said:

problem example:
shopurl.com/productongivencategoryisbroken-c-001.html should be
shopurl.com/product-on-given-category-is-broken-c-001.html

ok i figured it out - i had a double entry in mysql database - normal are 18 tables of ultimate seo urls in configuration table. i had 36. thats it. fixed it myself.

thanks to the authors of this contribution.

#1938 infowind

  • Community Member
  • 1 posts
  • Real Name:oscra

Posted 03 November 2009, 19:33

Hey Guys!
I have just installed the template on a test server.
The template only has the Ultimate SEO contribution 2.1c
What happens is that all the product pages and categories are redirected to index.php

This error only happens with this template, it does this?

bugaderiaautomatica.com/prueba/

the .htaccess
# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# 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>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

Options +FollowSymLinks
RewriteEngine On 
RewriteBase /prueba/

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 ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_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 ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

Thanks guys!

Edited by infowind, 03 November 2009, 19:35.


#1939 Peper

  • Community Member
  • 340 posts
  • Real Name:Pierre
  • Gender:Male
  • Location:South Africa

Posted 30 August 2011, 10:52

I've got the strangest problem, taking me forever to figure this out.

I get hundreds of 404 errors in my error log all products similar to this, even my server raw access log gives no hint to this
e.g. [Tue Aug 30 09:37:34 2011] [error] [client xx.xx.xx.234] File does not exist: /home/xxxxx/public_html/shop/computer-screens, referer: http://shop.mysite.com/computer-screens/lg100/led-screen-p-890.html

the .html part is missing thus creating 404 error
I checked page sources from a couple of pages and was unable to find broken links like the above

Any help please
Contributions successfully installed : Header tags SEO, Scrolling new products, Customer testimonials, Support tickets, Polls, Link exchange, SPPC, X-sell, Master products, Dhtml menu, Image cache, Slide show, Product videos, Product custom sort, Product notes, Discount coupons, Ask question(review style + admin), CP builder, Customers also purchased, price list, // SEO URLS 5, and forgot the others and then a real admin setup.