Jump to content
spidometrs

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

Recommended Posts

Jack,

 

Thanks for your reply it was a IIS thing and none us will ever understand... I restarted IIS server after making changes to the httpd.ini file it seems everytime I make a change I have to restart IIS to have it re-read the file which its like its a cache which is wierd but oh well thats the way its works on mine IIS 6.0....

 

Thanks again really appreciate the support and contributions to keep this the cart around.....

Share this post


Link to post
Share on other sites

Jack,

 

Thanks for your reply it was a IIS thing and none us will ever understand... I restarted IIS server after making changes to the httpd.ini file it seems everytime I make a change I have to restart IIS to have it re-read the file which its like its a cache which is wierd but oh well thats the way its works on mine IIS 6.0....

 

Thanks again really appreciate the support and contributions to keep this the cart around.....

You're welcome. I'm glad you found and posted the fix since I would probably not have thought to ask about the type of server.

Share this post


Link to post
Share on other sites

Hello Jack,

 

Is it possible to a create an option to add manufacturers_id to product URLs? Like: http://www.junabelle.de/speick-men-after-shave-lotion-p-65.html?manufacturers_id=19

When customers browse to a product by the manufacturers dropdown/list or by „other products“ from the manufacturer info box, I'd liked to show the link in the breadcrumb to the manufacturers overview like in the standard version of an osCommerce shop . I'm not concerned about duplicate content, because I'm using the canonical tag to present product urls without parameters to search engines. Furthermore -unlike cPath, which can be added- there is only one manufacturer per product.

 

Best regards,

Birgit

Share this post


Link to post
Share on other sites

Is it possible to a create an option to add manufacturers_id to product URLs? Like: http://www.junabelle.de/speick-men-after-shave-lotion-p-65.html?manufacturers_id=19

When customers browse to a product by the manufacturers dropdown/list or by „other products“ from the manufacturer info box, I'd liked to show the link in the breadcrumb to the manufacturers overview like in the standard version of an osCommerce shop . I'm not concerned about duplicate content, because I'm using the canonical tag to present product urls without parameters to search engines. Furthermore -unlike cPath, which can be added- there is only one manufacturer per product.

You could try the "Add cPath to product URLs?" setting. It won't be exactly what you want but may be close though it won't be a separate link in the breadcrumb, which it sounds like what you want.

Share this post


Link to post
Share on other sites

Jack,

 

Thanks for your reply. "Add cPath to product URLs?" is still set. It's working fine. It is following the standard pathes of osCommerce - but in SEO-URLS. Going the path (also shown in the breadcrumb) Top » Catalog » DVD Movies » Drama » DVD-BELOVED in the demo store gets the URL http://demo.oscommerce.com/product_info.php?cPath=3_15&products_id=20

With USU and 'add cPath setting = true' this would become something like http://demo.oscommerce.com/beloved-p-20.html?cPath=3_15

 

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

Hope I made it a bit clearer now.

 

Best Regards,

Birgit

Edited by russischblauekatze

Share this post


Link to post
Share on other sites

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

Hope I made it a bit clearer now.

I understood what you meant. There isn't an option for that in the contribution. The code would have to be changed to do what you want.

Share this post


Link to post
Share on other sites

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

I just thought to add that for sites with Header Tags SEO installed, the breadcrumb trail changes to the name of the manufacturer. So, in a standard shop, selecting Microsoft would provide Top » Catalog » Microsoft. That may be a little closer to what you want. If it is, you don't have to have Header Tags SEO installed (though you should). You just need to copy the changes to includes/application_top.php it makes and edit them to not use the Header Tags names.

Share this post


Link to post
Share on other sites
You just need to copy the changes to includes/application_top.php it makes and edit them to not use the Header Tags names.

Tried it but it did not change anything. When you edit the replacement and change "categories_htc_title_tag" back to "categories_name" and "manufacturers_htc_title_tag" back to "manufacturers_name" the file looks quite like the original one.

I give it up for the moment. I still have to write some Christmas Greetings...!

So, Happy Holidays to you and all who are reading this thread.

Birgit

Share this post


Link to post
Share on other sites

We have been using USU v2.1d Original for several years without a bit of trouble. In it a fit of exuberance, I decided to try the cleaned up Ultimate Seo Urls 2.1d STABLE FINAL r172.

 

 

With 2.1 original, we would see a url such as:

 

http://www.cactustactical.com/osc/ace-stocks-c-453.html'>http://www.cactustactical.com/osc/ace-stocks-c-453.html

 

which was the translated url for:

 

http://www.cactustactical.com/osc/index.php?cPath=453.'>http://www.cactustactical.com/osc/index.php?cPath=453.

 

 

Now with 2.1d Stable Final r172, we get:

 

http://www.cactustactical.com/osc/php4?cPath=453

 

The index. has been lost from the url and php has been changed to php4. This happens for every manufacturers, categories and products page. What we get is the 404 redirect since the url is incomplete.

 

What is interesting is that if the old seo-class.php script is put back, the contribution works fine with the other Final r172 changes. So, the issue is coming out of the seo-class.php script.

 

Looked for a similiar issue, but have not seen anything of this sort since Final r172 was made live.

 

 

Anyone have any ideas?

Share this post


Link to post
Share on other sites

Hi Jack,

 

Excellent contribution! Thanks for all your support. It's been a great help for a newbie like me. I had the redirect to index.php problem that happens in some templates and followed instructions in a previous post:

 

__________________________________________________________

 

Posted 10 October 2010 - 12:04 PM

 

If clicking a product or Mfr takes you back to the index.php page, read this!

I'd love to take credit for this fix, but I am not THAT good of a PHP developer (yet). However, if you look here http://addons.oscomm.../info/2823/v,22, Sunrise99 found a fix for your problem on February 6. I was having the same problem. The Ultimate SEO contribution (wonderful, by the way) automatically sets the new pages to .HTML pages. Your /includes/header.php file contains the following line ...

 

 

if(strpos($path_parts['basename'], "php") == false)

{

print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

that basically says "If 'php' is not included in the basename URL, redirect to index.php! THAT'S WHAT'S CAUSING YOUR PROBLEM.

 

I simply added "//" before print("... and it works GREAT! My code in header.php now looks like this...

 

 

if(strpos($path_parts['basename'], "php") == false)

{

//print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

Sunrise99, you saved me a HELLUVA lot of troubleshooting! Thanks a million!

 

Jim Evans

unpaid help for Aunt Denise's Children's Used Clothing and More

 

_________________________________________________________

 

After following this post, I lost my banner ads on my home page (which follows the above line I commented out). I see where the problem may be, but have no idea how to fix it. Any suggestions. Here's the relevant section of my header.php.

 

__________________________________________________________

 

<?php

$path_parts=getCurrPathName();

 

if(strpos($path_parts['basename'], "php") == false)

 

{

//print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

if(($path_parts['basename'] != "index.php") && ($path_parts['basename'] != "") && ($path_parts['basename'] != "index.php?language=en") && ($path_parts['basename'] != "index.php?language=de") && ($path_parts['basename'] != "index.php?language=es") && ($path_parts['basename'] != "index.php?currency=EUR") && ($path_parts['basename'] != "index.php?currency=USD") && ($path_parts['basename'] != "index.php?currency=USD&language=en") && ($path_parts['basename'] != "index.php?currency=USD&language=de") && ($path_parts['basename'] != "index.php?currency=USD&language=es") && ($path_parts['basename'] != "index.php?currency=EUR&language=en") && ($path_parts['basename'] != "index.php?currency=EUR&language=de") && ($path_parts['basename'] != "index.php?currency=EUR&language=es"))

 

{

 

?>

 

<?php

 

}else{

 

?>

 

<tr><td class="banner"><a href="index.php?cPath=1"><img border=0 src="images/banners/banner_02.jpg"></a><a href="specials.php"><img border=0 src="images/banners/banner_04.jpg"></a></td></tr>

 

<?php

}

?>

<tr><td class="row_3">

 

 

_______________________________________________

 

Any help or advice would be greatly appreciated.

Best,

Iffy

Edited by iffy

Share this post


Link to post
Share on other sites

After following this post, I lost my banner ads on my home page (which follows the above line I commented out). I see where the problem may be, but have no idea how to fix it. Any suggestions. Here's the relevant section of my header.php.

The code in your shop that is causing the problem is not necessairly the same as in other shops. So, while you are in the right area of code, other changes may be needed to get it to work with your template. Unfortunatley, that isn't a problem with this contribution but with the code in your shop so it isn't something that is supported here. You can try posting in the general forum and see if someone wants to spend the time fixing it for you. Otherwise you will need to figure it out yourself or pay someone to do it for you.

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

Ultimate SEO - by Chemo

 

Hi!

 

After the installation has received the following:

lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6

http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6

 

I would like to see a URL like this:

lace-bodystocking-p-3931.html

http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html

 

Or

http://intimleksaker.com/sexleksaker/lace-bodystocking

 

Here are the settings module:

seo.PNG

 

Thank you very much for help!

Edited by svefactor

Share this post


Link to post
Share on other sites

The is possible by setting up your configure file correctly. See here. The second isn't possible with this contribution.

Share this post


Link to post
Share on other sites

Has anyone tried this contribution with oSC 2.3.1 yet?

Yes, it works fine.

Share this post


Link to post
Share on other sites

Hi Jack,

 

Happy New Year!!!

Marvellous contribution, had it up and running on test server in less than 10 minutes.

 

Everything is fine except "Special character conversion". It does not seem to work. It omits special characters.

I have this string to convert Lithuanian special characters 'ą'=>'a','č'=>'c','ę'=>'e','ė'=>'e','į'=>'i','š'=>'s','ų'=>'u','ū'=>'u','ž'=>'z'

 

I checked configuration table in DB, all chars are shown correctly. Database encoding is utf8-general-ci.

 

Can you help me with this?

 

Example: "25 mm sidabro spalvos ruošinys segei, Gutermann, 1 vnt." => converts => "/sidabro-spalvos-ruoinys-segei-gutermann-p-3788.html"

 

Kovar

Share this post


Link to post
Share on other sites

Hi Jack,

 

Happy New Year!!!

Marvellous contribution, had it up and running on test server in less than 10 minutes.

 

Everything is fine except "Special character conversion". It does not seem to work. It omits special characters.

I have this string to convert Lithuanian special characters 'ą'=>'a','č'=>'c','ę'=>'e','ė'=>'e','į'=>'i','š'=>'s','ų'=>'u','ū'=>'u','ž'=>'z'

 

I checked configuration table in DB, all chars are shown correctly. Database encoding is utf8-general-ci.

 

Can you help me with this?

 

Example: "25 mm sidabro spalvos ruošinys segei, Gutermann, 1 vnt." => converts => "/sidabro-spalvos-ruoinys-segei-gutermann-p-3788.html"

 

Kovar

 

That is correct, only the basic Latin alphabet is allowed in a URI.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi guys, I have installed ultimate seo's and all appears to be working fine. But in admin it looks like this. Any ideas, your help would be greatseo.jpg

Share this post


Link to post
Share on other sites

Hi guys, I have installed ultimate seo's and all appears to be working fine. But in admin it looks like this. Any ideas, your help would be greatseo.jpg

Looks like the Polish version :thumbsup:

Share this post


Link to post
Share on other sites

Any ideas how to change it to the English version. Many Thanks

Replace the includes/classes/seo.class.php file

Goto admin->Configuration->SEO URLs and set the uninstall setting to true

Goto youu shop and click on the home (catalog) link to refresh the page

Share this post


Link to post
Share on other sites

That is correct, only the basic Latin alphabet is allowed in a URI.

 

But I thought main idea of special character conversion is to convert special characters to basic Latin? Am I right?

In my example special character 'š' is not converted to 's', it is just simply removed.

Share this post


Link to post
Share on other sites

But I thought main idea of special character conversion is to convert special characters to basic Latin? Am I right?

In my example special character 'š' is not converted to 's', it is just simply removed.

 

In which case perhaps your database encoding is conflicting with your osCommerce encoding?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×