Jump to content
FWR Media

ULTIMATE Seo Urls 5 - by FWR Media

Recommended Posts

Robert, Just a quick question. I noticed this yesterday after the install and saw it again today.

When I switch on my laptop and go to website for the first time in the morning and click on, eg. furniture category from my www.nontando home page it appears as http://www.nontando.com/index.php/furniture-c-24(and'>http://www.nontando.com/index.php/furniture-c-24(and another +-20 alphaanumeric characters after that)

but the secnd time and any further times I click on that category it appears correct

http://www.nontando.com/index.php/furniture-c-24

Any ideas?

Thanks, Gary

Share this post


Link to post
Share on other sites

Robert, Just a quick question. I noticed this yesterday after the install and saw it again today.

When I switch on my laptop and go to website for the first time in the morning and click on, eg. furniture category from my www.nontando home page it appears as http://www.nontando....niture-c-24(and another +-20 alphaanumeric characters after that)

but the secnd time and any further times I click on that category it appears correct

http://www.nontando..../furniture-c-24

Any ideas?

Thanks, Gary

 

It is called the session. ( session name and session id actually )

Edited by FWR Media

Share this post


Link to post
Share on other sites

It is called the session. ( session name and session id actually )

 

Yeah, just tested it. It happens with every category, that I press for the first time.

Can I fix this?

Share this post


Link to post
Share on other sites

Hi, I am using osc with Norwegian language which includes such a letter as "å ø æ" in category name or product name. If I try to open this kind of category or product an error appears.

 

Is it possible to fix it?

 

To see the problem go to www.barnsparadis.com and pick Norwegian language. Then click on some category that includes å, ø or æ.

 

Regards, Fabian

Share this post


Link to post
Share on other sites

Yeah, just tested it. It happens with every category, that I press for the first time.

Can I fix this?

You don't want to fix it. This is a fundamental way that osCommerce works. You can set the standard configuration option "Force cookie usage" but that will mean that search engines can't see your site.

 

You should have "Prevent Spider Sessions" enabled and keep the includes/spiders.txt file up to date (see my contrib below) to ensure that search engines don't index URLs with the osCsid value.

Share this post


Link to post
Share on other sites

"Force cookie usage" but that will mean that search engines can't see your site.

 

I agree with everything steve has said except for the above.

 

Force Cookie usage is an ideal imo.

 

http://forums.oscommerce.com/topic/370464-oscsid-why-you-should-lose-it/

Share this post


Link to post
Share on other sites

I will defer to Robert on this - and will test it on my sites. It may be that search engines are fine - they will simply get the "cookie usage" page if they try to follow a link to a page that requires a session. Of course, you should have such pages listed in robots.txt. On my site, I do not display such links if there is no session.

Share this post


Link to post
Share on other sites

I will defer to Robert on this - and will test it on my sites. It may be that search engines are fine - they will simply get the "cookie usage" page if they try to follow a link to a page that requires a session. Of course, you should have such pages listed in robots.txt. On my site, I do not display such links if there is no session.

 

 

Thanks Rob/Steve

My admin "prevent spider sessions" is already set to true so no change necessary there. I will install your updated spiders.text contribution.

Thanks, Gary

Share this post


Link to post
Share on other sites

Hello guys,

 

Any idea why I can't get the right urls in googlemap ? Sorry for posting again but I've seen no answer in my previous post http://forums.oscommerce.com/topic/336702-ultimate-seo-urls-5-by-fwr-media/page__view__findpost__p__1589239

but I feel it will disappear in the flow.

Here is a summary of my problem

In a multilanguage shop, Products and Categories have different names in each language. Urls are well formated on site but sitemaps only serve the names of first met language.

 

category_id : 21

category's german name: bücher

category's english name: books

category's french names: livres

 

site urls (correctly formed):

http://mysite/de/bücher-c-21.html

http://mysite/books-c-21.html

http://mysite/fr/livres-c-21.html

 

urls in sitemap (bad)

http://mysite/de/bücher-c-21.html

http://mysite/bücher-c-21.html

http://mysite/fr/bücher-c-21.html

 

It seems like the Usu5_Bootstrap::i()->bootStrapper( $lng ) doesn't initiates correctly but I am not able to fix it not to track something through the objects. Any help greatly welcome.

Edited by pages

Share this post


Link to post
Share on other sites

What is the file usu_cache.db-journal and why does it show up in my \cache_system\sqlite folder? It has zero-length and zero permissions(!) but when it shows up, my store breaks with this error:

 

Fatal error: Call to a member function fetch() on a non-object in /users/MYDOMAIN.com/htdocs/store/catalog/includes/modules/ultimate_seo_urls5/main/usu5.php on line 308

 

 

 

I wrote about this problem before and in the meantime discovered that this file is what breaks the store (I delete it and everything works again) but I still haven't heard from anybody here about what is the source of this problem. I really cannot allow it to keep happening as it breaks my store.

 

Any help?

Is there any reason why my problem is being ignored?

Share this post


Link to post
Share on other sites

Thanks for addon

 

Installed everything works (nearly)

In my sitemapProducts.xml there is only one line I just cannot seem to find and correct - located in middle of file though

</url>

<url>

<loc></loc>

<lastmod>2011-01-08</lastmod>

 

The above causes invalid sitemap

I checked database for missing product id or duplicate but nada

 

Any help on this please


Getting the Phoenix off the ground

Share this post


Link to post
Share on other sites

Hi,

Thanks for this ingenious contribution!

It is well documented.

However I have problems understanding the effect of rewrite rules in .htaccess (my lack of knowledge of rewrite rules).

 

I use the USU5 contribution on OsC2.2 RC2a.

I have this problem, I suspect due to bad rewrite rules, but I'm not sure of the cause of my problems.

 

When putting a product into the cart with the button on the product_info page, the product is added to the cart all right, but the server gives a error 500.

But not always. Below are some examples, my settings and my .htaccess

 

Can you please hint me to what I've missed or done wrong, or help me to further diagnose the problem?

Thanks in advance!

 

Eveline

 

Goes as desired:

From this page:

http://www.denkster.nl/winkel/product_info.php/metronoomstemapparaat-cmt-p-72

 

A click at the button In Cart, with this in the page source:

<form name="cart_quantity" action="http://www.denkster.nl/winkel/product_info.php/metronoomstemapparaat-cmt-p-72?action=add_product&pID=72" method="post">

 

 

Goes wrong:

Results in a 500 server error

 

From this page:

http://www.denkster.nl/winkel/product_info.php/apple-ipad-p-102

 

A click at the button In Cart, with this in the page source:

<form name="cart_quantity" action="http://www.denkster.nl/winkel/product_info.php/apple-ipad-p-102?action=add_product&pID=102" method="post">

 

From this page:

http://www.denkster.nl/winkel/product_info.php/shaker-clip-enkel-p-77

 

A click at the button In Cart, with this in the page source:

<form name="cart_quantity" action="http://www.denkster.nl/winkel/product_info.php/shaker-clip-enkel-p-77?action=add_product&pID=77" method="post">

 

From this page:

http://www.denkster.nl/winkel/product_info.php/muziekstandaard-p-71

 

A click at the button iIn Cart, with this in the page source:

<form name="cart_quantity" action="http://www.denkster.nl/winkel/product_info.php/muziekstandaard-p-71?action=add_product&pID=71" method="post">

 

My .htacces is:

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $
#
# 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>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter

# AcceptPathInfo On

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

# php_value session.use_trans_sid 0
# php_value register_globals 1

AuthUserFile ***** # hidden on forum
AuthName 'Alleen voor Administrator van winkel Denkster'
AuthGroupFile /dev/null
AuthType Basic


# Begin Ultimate SEO urls 5
# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
 RewriteEngine On

 # RewriteBase instructions 
 # Change RewriteBase dependent on how your shop is accessed as below. 
 # http://www.mysite.com = RewriteBase / 
 # http://www.mysite.com/catalog/ = RewriteBase /catalog/  
 # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ 

 # Change the following line using the instructions above  

RewriteBase /winkel/

# van Ultimate SEO Url's (USUS) oud
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# faqdesk contribution
RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
# van Ultimate SEO Url's 5 (USUS5) nieuw
 RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
 # Articles contribution
 RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
 # Information pages
 RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
 # Links contribution
 RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
 # Newsdesk contribution
 RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
</IfModule>

 

These are my settings:

Enable SEO URLs 5? 	true 	
Enable the cache? 	true 	Informatie  
Enable multi language support? 	false 	Informatie  
Output W3C valid URLs? 	true 	Informatie  
Select your chosen cache system? 	sqlite 	Informatie  
Set the number of days to store the cache. 	7 	Informatie  
Choose the uri format 	standard 	Informatie  
Choose how your product link text is made up 	p 	Informatie  
Filter Short Words 	2 	Informatie  
Add category parent to beginning of category uris? 	false 	Informatie  
Remove all non-alphanumeric characters? 	true 	Informatie  
Add cPath to product URLs? 	false 	Informatie  
Enter special character conversions. (Better to use the file based character conversions) 		Informatie  
Turn performance reporting on true/false. 	false 	Informatie  
Turn variable reporting on true/false. 	false 	Informatie  
Force www.mysite.com/ when www.mysite.com/index.php 	false 	Informatie  
Reset USU5 Cache 		Informatie  

Share this post


Link to post
Share on other sites

One more thing:

 

The problem, with the transition from product_info.php page to shopping_cart.php causing a 500 error, remains the same if I set the uri format to 'rewrite'.

 

My intention was to use 'rewrite', so the URL's get this shape:

http://www.denkster.nl/winkel/shaker-clip-enkel-p-77.html

 

The rewrite works almost alright in any setting of the uri format.

The only problem is the 500 server error when a product is added to the cart.

 

After more than a week of searching and studying, I'm desperate.

Please, please help?

 

kind regards

Eveline

Share this post


Link to post
Share on other sites

After more than a week of searching and studying, I'm desperate.

Please, please help?

 

kind regards

Eveline

 

Hi Eveline

 

The reason you cannot find anything by searching is that USU5 has no issue, the issue is related to your server or more likely your altered code.

Examples: -

 

Loads correctly

yoursite.nl/winkel/muziekstandaard-p-71.html

yoursite.nl/winkel/muziekstandaard-p-71.html?test=testing

 

Internal Server Error(s)

yoursite.nl/winkel/muziekstandaard-p-71.html?test

yoursite.nl/winkel/muziekstandaard-p-71.html?test=testing&test2

yoursite.nl/winkel/muziekstandaard-p-71.html?test=testing&test2=tested

 

These errors are nothing to do with USU5, USU5 is producing the correct URIs, your server is rejected the querystring.

 

I would suggest temporarily removing all code from .htaccess except for the code given in the USU5 download ( adding RewriteBase /winkel/ of course ) then retest it.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Dear Robert,

Thank you so much for taking time for me!

I would suggest temporarily removing all code from .htaccess except for the code given in the USU5 download ( adding RewriteBase /winkel/ of course ) then retest it.

I did that.

After changing the .htaccess to your example (with the correct rewrite-base), I did

  • reset the USU5-cache and
  • cleared the browser cache,
  • closed the browser and
  • restarted the browser to retest

But this 'clean' .htaccess made no change in my current problem situation.

Maybe there is still another cache that I need to clear?

 


  •  
  • These products can be added to the cart without error: 32, 35, 46, 72, 84 and 90.
  • I can't find a common factor in which these product differ from all other products..
  • All other products result in the error 500, when added to cart with click on 'In Cart'.
     

The urls look fine everywhere and all products ARE added to the cart, as can be seen after using the 'Back' button of the browser, to get from the error page to the last 'correct' page.

 

The reason you cannot find anything by searching is that USU5 has no issue, the issue is related to your server or more likely your altered code.

I admit that promptly. But where should I look?

Could it be Quantity Price Break Per Product (add-on 1242) that breaks the USU5?

 

Loads correctly

yoursite.nl/winkel/muzoiekstandaard-p-71.html?test=testing

That is right. But these give the error again:

yoursite.nl/winkel/muziekstandaard-p-71.html?action=add_product

yoursite.nl/winkel/muziekstandaard-p-71.html?action=add_product&pID=71

I don't understand..

 

These are the details of my production server:

- Shared server:  FreeBSD 4.10-RELEASE-p2
- Database: 	  MySQL 5.0.32-Debian_7etch10-log
- HTTP server: 	  Apache/1.3.42 (Unix) mod_gzip/1.3.26.1a mod_ssl/2.8.31 OpenSSL/0.9.7d
- PHP versie: 	  5.2.17 (Zend: 2.2.0)

I can't get the error logs from my provider.

 

I can't get the rewrite thing working on my test-server (Windows Vista+Apache+PHP).

That complicates the troubleshooting.

 

Would you please help me understand where I have to look for my error?

 

Thanks in advance, again..

kind regards

Eveline

Edited by Denkster

Share this post


Link to post
Share on other sites

I can't get the rewrite thing working on my test-server (Windows Vista+Apache+PHP).

That complicates the troubleshooting.

 

Would you please help me understand where I have to look for my error?

 

Thanks in advance, again..

kind regards

Eveline

 

I can't help any more than I already have. The problem isn't with USU5 it is with your code or server.

 

Re: your test server it needs mod_rewrite loaded in apache httpd.conf like:-

 

LoadModule rewrite_module modules/mod_rewrite.so

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hello guys,

 

Any idea why I can't get the right urls in googlemap ? Sorry for posting again but I've seen no answer in my previous post http://forums.oscommerce.com/topic/336702-ultimate-seo-urls-5-by-fwr-media/page__view__findpost__p__1589239

but I feel it will disappear in the flow.

Here is a summary of my problem

 

 

Any luck? I am also having the same problem but with greek. It is supposed to have been fixed with revision 205 but I noticed that the index.php file included with the contribution in the extras folder for sitemaps is still rev 203. I am fortunate to have a few products so I can alter the generated sitemaps manually but this definitely needs to be addressed.

Share this post


Link to post
Share on other sites

Any luck? I am also having the same problem but with greek. It is supposed to have been fixed with revision 205 but I noticed that the index.php file included with the contribution in the extras folder for sitemaps is still rev 203. I am fortunate to have a few products so I can alter the generated sitemaps manually but this definitely needs to be addressed.

 

USU5 is a URL rewriter, sitemaps were an add on extra, an afterthought, not a part of the core package. As such it did not receive much attention.

 

I will get around to having a look at it at some stage, when I get the free time.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Hi Robert

 

Any chance of having you new version of googlefeeder?, it is the only contribution that works with USU5 but google has changed their requirements.

Or and maybe better a new one under the KISS rules XD

 

regards

Share this post


Link to post
Share on other sites

Hello,

 

This contribution is just what I have been looking for! I installed it onto my site using OsCommerce 2.3 and when I mouse over the products in my catalog, the SEO links appear as they should...however when I try to access a product or category in Firefox I get the following error:

 

"The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

 

Any insight would be great because I would really like to utilize this contribution, but have had to uninstall it for the time being.

 

Thank you!

Share this post


Link to post
Share on other sites

Hello,

 

This contribution is just what I have been looking for! I installed it onto my site using OsCommerce 2.3 and when I mouse over the products in my catalog, the SEO links appear as they should...however when I try to access a product or category in Firefox I get the following error:

 

"The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

 

Any insight would be great because I would really like to utilize this contribution, but have had to uninstall it for the time being.

 

Thank you!

 

 

There is no redirect issue with USU5 so my guess would be that your configuration files are incorrect.

 

There is a system in USU5 that 301 redirects old seo urls to the new version when you change e.g. a product name .. this uses configure.php settings and can result in a redirect loop if your configure files are incorrect.

Share this post


Link to post
Share on other sites

Hello Robert,

 

Quick question. I have been using lightbox to enlarge my images on the same screen since the inception of my site. I have noticed since the install, that it is now opening the image in a different window. So, I just went into admin and turned off SEO Url 5 and the lightbox feature works again. Is this a common problem ? Is there a way I can still run lightbox with SEO Url5?

 

Thanks, Gary

Share this post


Link to post
Share on other sites

You have to set the correct settings in admin .. the product_info.php version is the non rewrite uri.

 

 

Robert - As per my earlier message, also having this problem.

What settings in admin are you referring too?

Thanks so much, Gary

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

×