Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Friendly URLs with language subdirectory


bedfordch

Recommended Posts

Hello,

I've installed more than 10 years ago the Ultimate SEO URLs contribution (http://addons.oscommerce.com/info/2823) V2.1

 

Unfortunately I've many SEO problems, first and most important is my site isn't recognised correctly on the language search and parameter in URL is prensent in search results. This is mostly because the URL are the same for any language (except for language parameter), and unfortunately this can't be changed.

 

It's there any way to have the language in URL like www.mysite.com/en/my-better-product-p-123456.html ?

 

I've seen another Ultimate SEO Url module (bad idea to have the same name for 2 contributions !) but I won't change my URL as they are quite well positioned for some search text and I'm not sure it has this feature.

 

Hope you can help.

 

Thank you !

Link to comment
Share on other sites

I'm sure it could be done, but will require some hand-tweaking of the .htaccess and the code that produces the links within osC. I guess that the first thing to ask would be: "what do you get now for URLs", then "are they processed correctly, and if not, what's wrong", then "what would you like to see", and "what should it be processed by .htaccess to"?

 

Would your example

www.mysite.com/en/my-better-product-p-123456.html

be rewritten to something like

www.mysite.com/display_product.php?lang=en&products_id=123456

? That can be tested manually by typing in that URL to the browser.

 

By the way "more than 10 years ago" indicates that you started out on osC 2.2 (probably MS2). Have you updated to newer versions of osC over time, or have you just been patching your store to work with PHP upgrades? If the latter, you may have serious security holes and be missing a lot of new features, as well as having cluttered and difficult-to-maintain code. At least try a trial installation of osC 2.3.4BS Edge, which is the latest and greatest.

Link to comment
Share on other sites

osC 2.3.4BS Edge is not ready for PHP7. Future problems are pre-programmed. Sorry @@MrPhil but he should try

https://github.com/gburton/Responsive-osCommerce

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

Hmm. So which version of 2.3.4BS is Gary continuing to update? Is Edge permanently frozen now? Gary did recently promise to provide PHP 7 compatibility.

 

As for your "Pimp" version, I'm a little leery of yet another fork to osC. It's bad enough that we have to have one community-supported unofficial release; to have more of them invites far more confusion (no matter how much of an improvement yours might be over Gary's). Any chance of you and Gary collaborating to have just one version?

Link to comment
Share on other sites

@@MrPhil

 

As for your "Pimp" version, I'm a little leery of yet another fork to osC. It's bad enough that we have to have one community-supported unofficial release; to have more of them invites far more confusion (no matter how much of an improvement yours might be over Gary's). Any chance of you and Gary collaborating to have just one version?

 

Shure a collarboration is posible. Forks of osC have to have, because the people out there need the stuff fast. osC2.4 still not useable for php7

osC3 still in beta. I am a developer and a lot shop online owner need the PHP7 suitabe version now, because the provider start to change to PHP7 there will be shout down php5.6 and older soon.

 

And here https://github.com/gburton/Responsive-osCommerce/issues/288 is another version only with core too and PHP 7 suitable. My Pimp Version is specialy for the EU/DE law, because no basic osC version is suitable for this market. That makes me a little bit sad, because Harald did and do a very good job. He is a German, so why osC not EU/DE law conform?

 

At this moment i see have three versions 1 only core PHP7 reday 1 only core close to PHP7 ready and one pimed for EU/DE law PHP7 and MySQL5.7 ready. Every one should think about the MySQL5.7 too.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

@@MrPhil

i will send you later with PM login data for the Gary version to the admin area. If you can tell me were i can get the "Gary" Version.

if all finish i will prepare FTP login for you and Gary. My server runs with PHP7.1 and MySQL5.7. My fork works very well and i have good expierence, what need to change. How is that sound?

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

Hmm. So which version of 2.3.4BS is Gary continuing to update? Is Edge permanently frozen now? Gary did recently promise to provide PHP 7 compatibility.

 

As for your "Pimp" version, I'm a little leery of yet another fork to osC. It's bad enough that we have to have one community-supported unofficial release; to have more of them invites far more confusion (no matter how much of an improvement yours might be over Gary's). Any chance of you and Gary collaborating to have just one version?

 

There is zero chance of collaboration as mcmannehan has decided to take the route whereby he will create a fork that is useless for putting code back into the core (which is totally cool), and further takes every opportunity to fragment this community with links to his "pimp" version (which is not cool).

 

I've let that go until now, but I think that might have to change.

Link to comment
Share on other sites

Thank MrPhil for the answer,

 

let me return to the original question:

What I've now:

www.mysite.com/my-better-product-p-123456.html

for any language...

and URL like www.mysite.com/my-better-product-p-123456.html?language=fr are actually in the Google search result.

 

I want to add the language between the site and product: www.mysite.com/en/my-better-product-p-123456.html

Same for others pages (manufacturers, contact, etc...).

Then I can provide different URL for different languages:

www.mysite.com/en/my-better-product-p-123456.html will be different than www.mysite.com/fr/my-better-product-p-123456.html and so on (I've 4 languages).

 

If I enter www.mysite.com/en/my-better-product-p-123456.html it's redirected to www.mysite.com/my-better-product-p-123456.html

 

I've tried to add the language in the URL but couldn't make it to work correctly. I could only make the home page working correctly so for. Was just hoping somebody would already have done it and could share the solution.

 

Thank you

Link to comment
Share on other sites

this version has multilanguage support and produces urls for additional languages like you wish:

http://addons.oscommerce.com/info/9544

Link to comment
Share on other sites

@@burt and @@mcmannehan, I'm not going to jump into the middle of any fight you're having over this fork. I will repeat that it's harming osC to have competing versions, so may the best one win and the other(s) wither away. Soon. Collaboration on one version would be even better, but it sounds like that's not going to happen. It's a shame that Gary even had to fork osC in the first place, but HPDL just doesn't seem to understand that going years between releases is extremely harmful, and is slowly killing osC. If Manfred has some good new features in the "pimp" version, hopefully at some point Gary will grab them for his version. I'm not sure that EU/DE additions are universally useful enough to put in the base product -- maybe that should be an add-on?

Link to comment
Share on other sites

I've tried to add the language in the URL but couldn't make it to work correctly. I could only make the home page working correctly so for. Was just hoping somebody would already have done it and could share the solution.

 

 

I guess we'd better back up a few steps here. What exactly are you trying to accomplish? osC already has a built-in feature to detect the language (from the browser configuration), but it didn't always work correctly until recent releases. You might want to try an up-to-date installation (if you're not already at 2.3.4 at a minimum) and see if the visitor's language is correctly detected. Also confirm that language changing works. It's not good to require visitors to type in the language code, so if that can be avoided, so much the better. Once the language is set, I seem to recall that it's carried around somewhere with the session information, and doesn't need to be passed in with every URL. Is my memory failing me? I don't use multiple languages, so I can't tell you for sure if a customer's language is preserved from session to session.(looking at the database definitions, it doesn't look like it). If not, maybe the current language would be a good thing to add to either the customers_info or the customers table?

Link to comment
Share on other sites

@@burt

There is zero chance of collaboration as mcmannehan has decided to take the route whereby he will create a fork that is useless for putting code back into the core (which is totally cool), and further takes every opportunity to fragment this community with links to his "pimp" version (which is not cool).

 

I've let that go until now, but I think that might have to change.

 

Why not cool? Everybody forget the EU/DE Law. And here https://github.com/gburton/Responsive-osCommerce/pull/533 i start to work with them.

This branch https://github.com/BrockleyJohn/Responsive-osCommerce/tree/php_compatibility_02 is the branch Gary working on it so i desiced to help too.

@@burt you give me feeling, that you don't like me, but anyway, i get over it.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

 @@MrPhil

 

@@burt and @@mcmannehan, I'm not going to jump into the middle of any fight you're having over this fork. I will repeat that it's harming osC to have competing versions, so may the best one win and the other(s) wither away. Soon. Collaboration on one version would be even better, but it sounds like that's not going to happen. It's a shame that Gary even had to fork osC in the first place, but HPDL just doesn't seem to understand that going years between releases is extremely harmful, and is slowly killing osC. If Manfred has some good new features in the "pimp" version, hopefully at some point Gary will grab them for his version. I'm not sure that EU/DE additions are universally useful enough to put in the base product -- maybe that should be an add-on?

 

There is no fight from my side and i am ready for collaboration, but may be someone don't like my fast style. I don't know. Gary version is the base and my version is suitable for EU/DE law and PHP7 and MySQL5.7 ready, so i bring my knowledge in, to help push the base version of Gary forward. Some EU/DE stuff  is useful for the base version. And not every add-on can programmed without a core hack.

  • The clever one learn from everything and from everybody
  • The normal one learn from his experience
  • The silly one knows everything better

[socrates, 412 before Christ]

Computers help us with the problems we wouldn't have without them!
99.9% of the bugs sit in front of the computer!
My programmed add-ons: WDW EasyTabs 1.0.3, WDW Facebook Like 1.0.0

if(isset($this) || !isset($this)){ // that's the question...

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...