Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * - 2 votes

[Contribution] Ultimate SEO URLs - by Chemo


1938 replies to this topic

#1241 mightyx

  • Community Member
  • 51 posts
  • Real Name:N. Maur
  • Gender:Male

Posted 12 June 2006, 22:43

View Postjocit, on Jun 12 2006, 06:16 PM, said:

Hi

I installed Ultimate_SEO_URLs_v2-2.2 on my shop http://butik.jocit.dk

Then on the last step of the install doc. it sais to call the shop so I did but, nothing, every thing look just as usual and nothing happend.

Then I tried to click a category and "404 File NOT found"

The requested URL /butik/index.php was not found on this server.

Can it have something todo with the .htaccess file?
I dident have one so I created one and put in the lines as disribet in the install doc.
In the line "RewriteBase /directory/" i deletet the directory and a slash so that it says
"RewriteBase /" I also tried /butik/ but it gives the same 404 error.

the path in the RewriteBase should that be the absolute server path?

For now I have turned SEO off so that my shop at least works.

I'm not a php programmer so I'm the perfect subject if I can install it with ease then every one should have the posibility.

cheers,
Jonas

Rewrite Base is the path to your catalog directory (usually /catalog/).
To solve your SEO problem. Please turn off "Use Search-Engine Safe URLs (still in development)" in Admin-->Configuration-->My Store, as this is the OSC internal SEO attempt (set to false). Instead of that turn on Ultimate SEO in Admin-->Configuration-->SEO URLS (enable SEO URLs = true).

I hope this helps!


CU Nick

Edited by mightyx, 12 June 2006, 22:43.


#1242 P-Dub

  • Community Member
  • 4 posts
  • Real Name:Chris Millington

Posted 13 June 2006, 11:41

I've installed this Mod, and it works great, but having been thru 62 pages of support items for it, i'm wondering if this is coverered in another thread...

At the moment the urls are running as

gifts-novelties-c-25.html for example

I'm wondering if its possible to remove the last part of the url so it looks like this...

gifts-novelties.html

Its something to SEO company have suggested to improve the ranking of the site, and my boss is giving me grief to sort his one out.

Any help would be greatly appreciated.

#1243 higgalls

  • Community Member
  • 315 posts
  • Real Name:Higgalls
  • Location:Australia

Posted 13 June 2006, 12:01

View PostP-Dub, on Jun 13 2006, 09:41 PM, said:

I've installed this Mod, and it works great, but having been thru 62 pages of support items for it, i'm wondering if this is coverered in another thread...

At the moment the urls are running as

gifts-novelties-c-25.html for example

I'm wondering if its possible to remove the last part of the url so it looks like this...

gifts-novelties.html

Its something to SEO company have suggested to improve the ranking of the site, and my boss is giving me grief to sort his one out.

Any help would be greatly appreciated.

Hey,

As far as I know, that is completely impossible with this contrib. The c-25 is the category name is the ONLY thing that links the SEO'd URL to the correct page on your website.

Google and other search engines will not penalise you at all by having the c-25 there because as far as they are concerned, it could be a part of your product name (and google don't know that you are using something to change your URLs like that).

Cheers,
Chris :)

#1244 vox

  • Community Member
  • 58 posts
  • Real Name:Bob
  • Gender:Male

Posted 21 June 2006, 19:18

I've installed Ulimate SEO URL's v2-2.2 and it's doing what it should, the only problem seems to be that it's "broken" my product notifications in checkout_success.php.

As a customer I can select the product notifications option from the Notifications Box on the product_info pages and that shows in my account.

But when I buy a product and select the product notifications option check box on the checkout_success pages it doesn't show in my account.


product_notifications works fine - adds the notification to my acount:


$info_box_contents = array();
	$info_box_contents[] = array('text' => BOX_HEADING_NOTIFICATIONS);

	new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL'));

	if (tep_session_is_registered('customer_id')) {
	  $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'");
	  $check = tep_db_fetch_array($check_query);

	  $notification_exists = (($check['count'] > 0) ? true : false);
	} else {
	  $notification_exists = false;
	}

	$info_box_contents = array();
	if ($notification_exists == true) {
	  $info_box_contents[] = array('text' => '<table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . tep_image(DIR_WS_IMAGES . 'box_products_notifications_remove.gif', IMAGE_BUTTON_REMOVE_NOTIFICATIONS) . '</a></td><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY_REMOVE, tep_get_products_name($HTTP_GET_VARS['products_id'])) .'</a></td></tr></table>');
	} else {
	  $info_box_contents[] = array('text' => '<table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . tep_image(DIR_WS_IMAGES . 'box_products_notifications.gif', IMAGE_BUTTON_NOTIFICATIONS) . '</a></td><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY, tep_get_products_name($HTTP_GET_VARS['products_id'])) .'</a></td></tr></table>');


checkout_success looks as though it is working (no error codes) when I check the product notification box but it does not add the notification to my account:


if ($global['global_product_notifications'] != '1') {
	echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

	$products_displayed = array();
	for ($i=0, $n=sizeof($products_array); $i<$n; $i++) {
	  if (!in_array($products_array[$i]['id'], $products_displayed)) {
		echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';
		$products_displayed[] = $products_array[$i]['id'];
	  }
	}

	echo '</p>';
  } else {
	echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;
  }

I can see that the two blocks of code are different but can anyone give me a steer on what I should check/change?

#1245 insomniac2

  • Community Member
  • 407 posts
  • Real Name:Don

Posted 22 June 2006, 07:04

Anyone getting this Error rom the latest version 2.2.2 package? Is there a fix?

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ...... path \catalog\includes\classes seo.class.php on line 115

The line is:

function FetchArray($resource_id, $type = MYSQL_BOTH) {
return mysql_fetch_array($resource_id, $type); <-- LINE 115 ERROR
} # end function

My previous version 2.1c did not throw this error and that line looked like this:

return @mysql_fetch_array($resource_id, $type); ... it had an @ symbol before mysql

I tried putting it in the new version but still same error.

#1246 netcart

  • Community Member
  • 7 posts
  • Real Name:Adam Piotrowski
  • Location:Poland

Posted 10 July 2006, 12:35

Hi,

i'm using following contribs :

1. http://www.oscommerce.com/commuGoogle XML Sitemap Feed v1.3 from 5 Jun 2005

and

2. Ultimate SEO URLs 2.2 Nventa 8 Apr 2006

and i cannot get this two contribs working together. The links are mod-rewrited in shop (see here) and i get no error. Also the sitemaps are generated BUT the links are not SEO (product id NOT product name)

Sorry for my english but the 'working' example you can see here.

Does anyone know a solution/fix or know a working combination of these two contribs?


Best Regards

Adam Piotrowski
netCart
Poland

#1247 higgalls

  • Community Member
  • 315 posts
  • Real Name:Higgalls
  • Location:Australia

Posted 10 July 2006, 13:17

View Postnetcart, on Jul 10 2006, 10:35 PM, said:

Hi,

i'm using following contribs :

1. http://www.oscommerce.com/commuGoogle XML Sitemap Feed v1.3 from 5 Jun 2005

and

2. Ultimate SEO URLs 2.2 Nventa 8 Apr 2006

and i cannot get this two contribs working together. The links are mod-rewrited in shop (see here) and i get no error. Also the sitemaps are generated BUT the links are not SEO (product id NOT product name)

Sorry for my english but the 'working' example you can see here.

Does anyone know a solution/fix or know a working combination of these two contribs?
Best Regards

Adam Piotrowski
netCart
Poland

Try using Ultimate SEO URL's 2.1d (Chemo's official one that was uploaded by myself in the contrib area).

Also, try replying in the other Ultimate SEO URLs thread here: http://forums.oscommerce.com/index.php?showtopic=154166

Regards,
Chris

#1248 tonionio

  • Community Member
  • 17 posts
  • Real Name:tonioino

Posted 10 July 2006, 19:39

Hi,

I installed the Ultimate SEO URLs v2.2.2 adn have 2 problems that hopes someone can help me to fix it:-

1. If I choose the "Enable automatic redirects?" to "false" on the SEO URL in admin control panel, then, it is working. Otherwise, it doesn't work, why?

2.In the "product listing" page, The hyper-link in "product name" is not work, but the link in image is working.
Where can i find the code for that link and how can i fix it?

here is one of the link on my website for your reference:-
http://www.monstech.com/bluetooth-h...2bd0446b469c11a

The link on the image is working correctly:-
http://www.monstech.com/bluetrek-wa...2bd0446b469c11a

The link on the product name is not work:-
[/url]http://www.monstech.com/product_inf...2bd0446b469c11a[/url]

#1249 www.sat25.com

  • Community Member
  • 26 posts
  • Real Name:ricardo

Posted 15 July 2006, 15:19

Hi guys can you tell me what is the best version, i want install but i dont no what is the version have the full package.

thanks

#1250 higgalls

  • Community Member
  • 315 posts
  • Real Name:Higgalls
  • Location:Australia

Posted 16 July 2006, 00:39

View Postwww.sat25.com, on Jul 16 2006, 01:19 AM, said:

Hi guys can you tell me what is the best version, i want install but i dont no what is the version have the full package.

thanks

Hey,

Install Chemo's Official 2.1d that I put in the contrib area. I use it and it works well.

I haven't used any of the other versions that have been put in there, so I dont know what they are like.

Cheers,
Chris

#1251 higgalls

  • Community Member
  • 315 posts
  • Real Name:Higgalls
  • Location:Australia

Posted 16 July 2006, 00:42

View Posttonionio, on Jul 11 2006, 05:39 AM, said:

Hi,

I installed the Ultimate SEO URLs v2.2.2 adn have 2 problems that hopes someone can help me to fix it:-

1. If I choose the "Enable automatic redirects?" to "false" on the SEO URL in admin control panel, then, it is working. Otherwise, it doesn't work, why?

2.In the "product listing" page, The hyper-link in "product name" is not work, but the link in image is working.
Where can i find the code for that link and how can i fix it?

here is one of the link on my website for your reference:-
http://www.monstech.com/bluetooth-h...2bd0446b469c11a

The link on the image is working correctly:-
http://www.monstech.com/bluetrek-wa...2bd0446b469c11a

The link on the product name is not work:-
[/url]http://www.monstech.com/product_inf...2bd0446b469c11a[/url]

Hey,

I just went to your website and it seems to be working. Did you sort out the problem you were having?

However, I have noticed that I haven't lost the Session ID in the URL. Looks like you have something wrong with your cookie setup in configure.php.

Try setting your cookie domain to ".monstech.com" (yes... include the dot at the beginning, and leave off the 'www').

Cheers,
Chris

#1252 ruchkin

  • Community Member
  • 4 posts
  • Real Name:Eric

Posted 18 July 2006, 21:18

With the mod_rewrite rules and altering my application code I can have now static URLs like:

ProductName-pr-100.html
CategoryName-c-1.html
where pr is product id and c is category number.

The problem is that any old URL redirect doesn't work whether I enable or disable it in Ultimate SEO admin section.
Old url, for example, .../product_info.php?products_id=100 goes directly to this url without rewriting in the browser if it accessed wrom the external link or browser window.

This loophole in the code created duplicate urls.

I used code below to redirect and it works but it adds query string to the new URL even it is not in the rule.

#code to tell spiders where your new page is
RewriteCond %{QUERY_STRING} ^product_id=100$
RewriteRule ^.*$ ProductName-pr-32.html [R=301,L]

The resulting rewritten URL will be ..../ProductName-pr-32.html?product_id=100

Here are my rewrite rules which might help understand what redirect patterns would/might work:

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

Using this as an example, how would I get rid of query_string that apache adds automatically to the new URL ? Anyone can help ?

Do you know the way to do 301 redirect that rewrites old dynamic format page into the static example format?


Many thanks in advance.

Edited by ruchkin, 18 July 2006, 21:21.


#1253 ruchkin

  • Community Member
  • 4 posts
  • Real Name:Eric

Posted 24 July 2006, 21:02

View Postruchkin, on Jul 18 2006, 09:18 PM, said:

With the mod_rewrite rules and altering my application code I can have now static URLs like:

ProductName-pr-100.html
CategoryName-c-1.html
where pr is product id and c is category number.

The problem is that any old URL redirect doesn't work whether I enable or disable it in Ultimate SEO admin section.
Old url, for example, .../product_info.php?products_id=100 goes directly to this url without rewriting in the browser if it accessed wrom the external link or browser window.

This loophole in the code created duplicate urls.

I used code below to redirect and it works but it adds query string to the new URL even it is not in the rule.

#code to tell spiders where your new page is
RewriteCond %{QUERY_STRING} ^product_id=100$
RewriteRule ^.*$ ProductName-pr-32.html [R=301,L]

The resulting rewritten URL will be ..../ProductName-pr-32.html?product_id=100

Here are my rewrite rules which might help understand what redirect patterns would/might work:

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

Using this as an example, how would I get rid of query_string that apache adds automatically to the new URL ? Anyone can help ?

Do you know the way to do 301 redirect that rewrites old dynamic format page into the static example format?
Many thanks in advance.


Finally, I found the solution. I was wery close and the solution was simple - just use ? at the end of the last RewriteRule. Now my body care site works fine and old urls can be redirected correctly. It would be nice to implement this redirects inside seo_class.php script. The redirect code written there simply doesn't work. So, I have to use redirects in .htaccess files like this below:

#code to tell spiders where your new page is
RewriteCond %{QUERY_STRING} ^product_id=100$
RewriteRule ^.*$ ProductName-pr-32.html? [R=301,L]

The problem is that I need to write this code for any single old url if I need redirect. For sites with many
urls it looks a bit of problem.

Edited by ruchkin, 24 July 2006, 21:06.


#1254 fgwapo

  • Community Member
  • 14 posts
  • Real Name:francis gwapo

Posted 25 July 2006, 00:13

Hello,

I am encountering problems with your Contrib. I have created a new sub categories and move the products to its corresponding categories. When tried to click the primary category it says "There are no products to list in this category" I tried clearing the cache using the admin interface feature of your contrib still no luck.

Any help is highly appreciated.


Thanks

#1255 higgalls

  • Community Member
  • 315 posts
  • Real Name:Higgalls
  • Location:Australia

Posted 25 July 2006, 01:28

View Postfgwapo, on Jul 25 2006, 10:13 AM, said:

Hello,

I am encountering problems with your Contrib. I have created a new sub categories and move the products to its corresponding categories. When tried to click the primary category it says "There are no products to list in this category" I tried clearing the cache using the admin interface feature of your contrib still no luck.

Any help is highly appreciated.
Thanks

Hi,

Is it in the appropriate category in the admin (as in can you see it there)?
What makes you think it is this contrib that is causing it? Was this contrib working for you beforehand?
If you have cleared the cache and it is still not working, then my thoughts are that it isn't a problem with this contrib; it must be a problem elsewhere in your store..

Also, what version of the contrib are you using?

Regards,
Chris

#1256 Monk

  • Community Member
  • 59 posts
  • Real Name:Berger

Posted 26 July 2006, 17:56

Anyone come across the problem of the Payment Errors not being displayed on the page becasue of the broken ampersand in the URL??

I saw this as a previous release when it comes to redirects, but does not seem to solve the issue I am having:

The '&' character is valid when it is displayed on a page because the browser intreprets it correctly. However when it is used in a redirect, the browser doesn't intrepret the '&' into just '&', so it shows up incorrectly in the url

Added these two lines to includes/classes/seo.class.php line #1890

# BC Redirects shouldn't have '&'s in them
$url = preg_replace('/&/','&',$url);


So the issue I am having is the Payment Errors being:

checkout_payment.php?payment_error=authorizenet&error=The+credit+card+type+you
instead of

checkout_payment.php?payment_error=authorizenet&error=The+credit+card+type+you

Which then does not allow the error to display on the page

Thanks in advance

Well thats intersting....making my link above....and the worong URL comes out right......oh well.....you all know what I mean....I hope!!

Edited by Monk, 26 July 2006, 17:57.


#1257 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 26 July 2006, 18:14

Did you try disabling "Output W3C valid URLs"

I am not sure if that optino is in the osC release.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#1258 themistral

  • Community Member
  • 39 posts
  • Real Name:Sandra

Posted 03 August 2006, 09:34

Hi

I have searched this thread but have been waning a little as it is so long! :blush:
I have installed the SEO mod on a CRE Loaded version and it is all working apart from the categories menu.

Has anyone installed this on a CRE Loaded version and if so, can you help me to work out what I need to do?

Thanks!!

#1259 dnet195

  • Community Member
  • 1 posts
  • Real Name:Jason

Posted 04 August 2006, 03:05

Hello,

Thanks in advance for any help you can provide. I have installed this contrib and it works perfect. Thanks for your hard work. I am trying to modify it so that I can use any term for the url, not just the product name. I have created a new field in products table called products_url, and modified the edit product page in the admin area to add/edit this new field. That part works fine.

Now i just need to get the text from that field into the new url. I have tried replacing the product_name in the seo.class.php file with product_url, but it doesnt seem to change anything. Could someone point me in the right direction?

Thanks!!
Jason

#1260 motorcity

  • Community Member
  • 179 posts
  • Real Name:Joe
  • Location:Detroit, Michigan USA

Posted 04 August 2006, 22:00

Hello,
Our problem seems to be in the .htaccess file
I get - INTERNAL SERVER ERROR
when I upload the htaccess file

The server software is Apache

This is the .htaccess file code I copied from the Ultimate_SEO_URLs_v2[1].1d_1
The following is exactly the only & everything I put in .htaccess
I loaded the file in ASCII mode
It is located in a directory called "catalog"

Options +FollowSymLinks
RewriteEngine On
RewriteBase /catalog/

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'm wondering if I choose the correct version of the contribution - the following is a sample of a product call from our website;

http://oursite.com/catalog/product_info.ph...ac2726d8a403f24

I've been searching this forum for hints and answers but came up empty so far.
I also called the tech support for my host - they said the problem is in the .htaccess file and they can't help me as much as you folks can.
So please, if you can help me out here? :blink: