Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seach Engine Friendly URL Support


BlueYon

Recommended Posts

  • Replies 968
  • Created
  • Last Reply

Top Posters In This Topic

BlueYon, which template system and/or other features do you use at itchi-tech.com?

 

 

Dear Jef,

 

About your problem you need to remove this line of code:

 

if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR'])

return $param[1] . $param[2] . $param[3];

 

from url_rewite.php

 

 

I use BTS. I just hope some one out there can come up with a template system for the MS3.

Edited by BlueYon
Link to comment
Share on other sites

Dear Jef,

 

About your problem you need to remove this line of code:

 

      if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR'])

        return $param[1] . $param[2] . $param[3];

 

from url_rewite.php

I use BTS. I just hope some one out there can come up with a template system for the MS3.

 

Thank you very much for your fast reply. It's working now :)

 

I really like this script, thanks for working on it and sharing with us. This "thank you" goes to all contributors as well.

Link to comment
Share on other sites

how to manage the accentuated characters (French language)? if there is an accent in the name of the product, the contribution does not function any more.

 

have u seen these charaters in the url bar before?

 

if not then you need to find the charater code for charater and then add it to the strip functin at tyhe top of url_rewrite.php

Link to comment
Share on other sites

have u seen these charaters in the url bar before?

 

if not then you need to find the charater code for charater and then add it to the strip functin at tyhe top of url_rewrite.php

 

these characters are well in the url bar.

 

but a click on a URL containing these characters carries out systematically on the home page and not on the page of the product.

 

no problem for the products which are not accentuated characters in their name.

Link to comment
Share on other sites

Hello,

 

I want to install both Search Engine Friendly v1.5 and BTS v1.4

 

both make huges modifications in catalog/index.php and it's a bit hell to try to merge it...

Does someone already did it and is willing to share his catalog/index.php ?

Link to comment
Share on other sites

Hello,

 

I want to install both Search Engine Friendly v1.5 and BTS v1.4

 

both make huges modifications in catalog/index.php and it's a bit hell to try to merge it...

Does someone already did it and is willing to share his catalog/index.php ?

 

 

Thats how I have mine set up. To be honest it Search Engine Friendly v1.5 and BTS v1.4 run better together.

 

I try to give instructions tomorrow as going to bed.

Link to comment
Share on other sites

Thats how I have mine set up. To be honest it Search Engine Friendly v1.5 and BTS v1.4 run better together.

 

I try to give instructions tomorrow as going to bed.

 

Thanks BlueYon, while you'r taking some rest I'll try to figure it out by myself too ;)

 

I saw that you helped someone else before on the same subject here, but the indications you gave to him seems not working on my catalog/index.php

 

Good night, looking forward to read you.

Link to comment
Share on other sites

What happens with the urls listed in search engines after I install this contribution?

Will they still work?

I have links like that now: index.php/cPath/28_47

 

Thanks

Link to comment
Share on other sites

I am using Version 1.5 of osCommerce Search Engine Otimized URLs.

 

I have removed from url_rewite.php

if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR'])
return $param[1] . $param[2] . $param[3];

 

This semi worked at getting the urls not to display "ttp" instead of the url.

 

If I clear my cache the first page I go to still shows ttp, if I refresh again its fine, but every time I clear my cache, ttp turns up again....

 

Also did anyone work out the problem with the image popups?

 

java script:popupWindow('http://burrett.net/popup_image.php/pID/1')

 

works in product reviews but not product description.

Link to comment
Share on other sites

What happens with the urls listed in search engines after I install this contribution?

Will they still work?

I have links like that now: index.php/cPath/28_47

 

Thanks

 

Yes they will still work. :D

 

Also did anyone work out the problem with the image popups?

java script:popupWindow('http://burrett.net/popup_image.php/pID/1')

works in product reviews but not product description.

 

You need to copy and paste the javascript out op product_info.php and put it into index.php... i posted this solution a while back ago :thumbsup:

Edited by RikP
Link to comment
Share on other sites

I am using Version 1.5 of osCommerce Search Engine Otimized URLs.

 

I have removed from url_rewite.php

if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR'])
return $param[1] . $param[2] . $param[3];

 

This semi worked at getting the urls not to display "ttp" instead of the url.

 

If I clear my cache the first page I go to still shows ttp, if I refresh again its fine, but every time I clear my cache, ttp turns up again....

 

Also did anyone work out the problem with the image popups?

 

java script:popupWindow('http://burrett.net/popup_image.php/pID/1')

 

works in product reviews but not product description.

 

 

This is somthing to do with your SERVER nto being the same as your domain name.

 

Like mine I recently changed my domain name from http://www.itchi-tech.com to http://www.itchi-tech.co.uk. The server still thinks it s http://www.itchi-tech.com.

 

If I still have that code in it thinks the link does not belong to the server so it skips it. Not sure what the problem is on yours.

 

I have added a few more bitys of code to my script.

 

such as

   if (strpos($param, '#')) 
    return $param;

 

on line 68

Link to comment
Share on other sites

Help!

 

I've just installed. It works for the categories but it doesn't go to product_info.php when I click on the product in product listing....it refreshes the page and shows the products side boxes but it still shows product listing.

Link to comment
Share on other sites

In "/admin/includes/functions/general.php" 
Before (around line 956):

 } 


Add this code (around line 956):

   @unlink(DIR_FS_CACHE . 'categories_array.cache'); 
   @unlink(DIR_FS_CACHE . 'manufacturers_array.cache'); 
   @unlink(DIR_FS_CACHE . 'products_array.cache'); 


Note: Should be the reset cache function!

I don't get this part of the instructions.

My general.php has 1258 lines and has been modified before.

So "} (around line 956)" is not very helpful.

In which function is that? Can you please post some more code around it?

 

Thanks!

Link to comment
Share on other sites

Could my problem be caused by multiple categories contribution?

This contribution allows me to have the same product in multiple categories.

 

Most probably the error is in my index.php file....both my index.php and my product_info.php have been modified so I didn't use the index.php that came with this contribution. Instead (based on the index.php in this contribution) I tried to assemble my own index.php.

 

You can see the problem here http://www.lekarnar.com/index.php/cPath/29...products_id/309

 

In aplication_top and html_output I commented out the newly added SEF code because this is a live store. So the urls are not currently rewritten(but that part works). The index.php is the new one.

 

As you can see it shows product_listing instead of the product info!?

 

Thanks for any hints you can give me!

Link to comment
Share on other sites

Could my problem be caused by multiple categories contribution?

This contribution allows me to have the same product in multiple categories.

 

Most probably the error is in my index.php file....both my index.php and my product_info.php have been modified so I didn't use the index.php that came with this contribution. Instead (based on the index.php in this contribution) I tried to assemble my own index.php.

 

You can see the problem here http://www.lekarnar.com/index.php/cPath/29...products_id/309

 

In aplication_top and html_output I commented out the newly added SEF code because this is a live store. So the urls are not currently rewritten(but that part works). The index.php is the new one.

 

As you can see it shows product_listing instead of the product info!?

 

Thanks for any hints you can give me!

 

Why would u install this contribution when oscommerce does this by default.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...