Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Have installed v2.2d-10 and all works well apart fromo ne problem.

 

When something is added to the cart from the product list using the buy now button, then the user chooses continue shopping from the cart, all the buy now buttons retain that product id when the user is returned to that category.

 

Hope that makes sense!

 

I am still of the opinion that version Ultimate Seo Urls 2.1d STABLE FINAL r172 is still the current stable version, if you don't need the stuff that has been added to the original contribution then you could perhaps try that. I recommend USU5 as opposed to this old series 2 if you run PHP5.2+ ( see my sig ).

Link to comment
Share on other sites

Nevermind

 

Found this http://svn.oscommerc.../browse/OSC-787

 

Which more or less explains the problem and a fix...it's a oscomemrce bug not a SEO one :)

 

Yes that is correct, I reported the original problem this has been a part of the stable version for ages.

 

http://svn.oscommerce.com/jira/browse/OSC-478

Edited by FWR Media
Link to comment
Share on other sites

i just migrated my shop over to a new server with php 5.3 & apache 2.2 . Now im having trouble with the redirecting. When i click on a featured product or category on the home page i get redirected back to the homepage (index.php). Whats up with this?

Without a url, .htaccess file and the version you are using, it is very difficult to offer help. There is a coding change for mysql in my last version as noted in the last page or two that may fix it though.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I've installed and no errors.. except that when i click my categories or product it will just redirect back to index.php

 

You can see my demo store here.. http://www.navigationrus.com/ and just try clicking on products or categories.

 

Is there anything I did wrong? Please advice..

 

# Begin Ultimate SEO V2.2d 
Options +FollowSymLinks
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 /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
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 ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

Edited by certify
Link to comment
Share on other sites

I've installed and no errors.. except that when i click my categories or product it will just redirect back to index.php

 

You can see my demo store here.. http://www.navigationrus.com/ and just try clicking on products or categories.

 

Is there anything I did wrong? Please advice..

 

# Begin Ultimate SEO V2.2d 
Options +FollowSymLinks
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 /

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
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 ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

 

This is the same problem im having. When you hover over the product, the url is correct, but once clicked, it redirects to the homepage /index.php . I think im using version 2.1. Worked fine on the old server with apache 2.1 and php 5. Now that ive changed server to php 5.3 im getting this.

Link to comment
Share on other sites

This is the same problem im having. When you hover over the product, the url is correct, but once clicked, it redirects to the homepage /index.php . I think im using version 2.1. Worked fine on the old server with apache 2.1 and php 5. Now that ive changed server to php 5.3 im getting this.

So is there a fix to this problem?

Link to comment
Share on other sites

So is there a fix to this problem?

 

 

Im guessing you have it installed on a server with a new install of apache and php. I think its either we haven't set up our httpd.conf/php.ini/.htacces files correctly or its php 5.3 issues that might be causing it.

Are you running other sites on the same server <virtualhost>?

Link to comment
Share on other sites

I've installed and no errors.. except that when i click my categories or product it will just redirect back to index.php

This is a common problem with a group of templates like the one you are using. There is probably code in there that is causing the redirection. Several fixes for this have been mentioned in this thread. This is one of them but there are others if that one doesn't apply to your template.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

This is a common problem with a group of templates like the one you are using. There is probably code in there that is causing the redirection. Several fixes for this have been mentioned in this thread. This is one of them but there are others if that one doesn't apply to your template.

Thanks for the tip.. I'll give it a try and update u guys on the results.

Link to comment
Share on other sites

Thanks for the tip.. I'll give it a try and update u guys on the results.

Chester - this post is for you:

 

Visit the link below:

 

How to Secure Your Site

 

Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable.

 

It's easier to do a few security fixes now than to clean up a hacked store later.

 

And if you don't secure the admin your shop will be hacked.

 

It's just a question of when...

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hello

Currently I'm using SEO-G but its make my site extremly slow. I would like to switch to Ultimate Seo URL

I have 11 000 urls indexed by google, is there any way to transfer it to USU,

What is the best stragy for this kind of migration ?

Thank You in advance

Link to comment
Share on other sites

Hello.

 

I have the same issue with being redirected back to index.php

 

 

I have tried commenting out the part mentioned in earlier posts, and also searching for other instances of redirect scripts.. however, i cannot find anything.

ANyone who has been out for the same issue?

Is there anyone out there who would like to assist?

Link to comment
Share on other sites

Currently I'm using SEO-G but its make my site extremly slow. I would like to switch to Ultimate Seo URL

I have 11 000 urls indexed by google, is there any way to transfer it to USU,

What is the best stragy for this kind of migration ?

Switching the code isn't a problem. The problem is in how the url's are formatted. If they appear the same as Ultimate SEO writes them - domain.com/somename-c-1.html - then you can switch without any problems. But if they are formatted differently, the code probably won't catch it and you will lose your index positions for those url's. In that case, you would have to add code to the .htaccess or application_top file to catch those url's and convert them.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I have the same issue with being redirected back to index.php

 

I have tried commenting out the part mentioned in earlier posts, and also searching for other instances of redirect scripts.. however, i cannot find anything.

ANyone who has been out for the same issue?

Is there anyone out there who would like to assist?

The problem is that the code varies with the template so no one fix can be posted.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Pretty sure this aint a template code problem as the same code worked for me once upon a time on an older server.

My reply was to a different member and wasn't meant to apply to your problem.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Switching the code isn't a problem. The problem is in how the url's are formatted. If they appear the same as Ultimate SEO writes them - domain.com/somename-c-1.html - then you can switch without any problems. But if they are formatted differently, the code probably won't catch it and you will lose your index positions for those url's. In that case, you would have to add code to the .htaccess or application_top file to catch those url's and convert them.

Hello Jack

They have different format

I'm thinking of 301 redirect via .htaccess

and I'm wondering if there will be performance issue when I put 2000 redirects

is there any way to grab it from csv and place it in cache table ?

Thank You in advance

Link to comment
Share on other sites

Hello Jack

They have different format

I'm thinking of 301 redirect via .htaccess

and I'm wondering if there will be performance issue when I put 2000 redirects

is there any way to grab it from csv and place it in cache table ?

Thank You in advance

That wouldn't help since a 301 has to be issued. Try this, untested, line in the .htaccess file (edited for your site, of course)

redirectMatch 301 ^/the_old_([^.]+)\.htm$ http://yourdomain.com/the-new-$1.htm

You could also put code in the includes/application_top.php file that catches any of the old url's, rewrites them and isues a 301.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Does any one have the new Add-on for "oscommerce-2.2rc2a"

 

SInce the "Ultimate_SEO_URLSv22d" give me "Error 404: File Not Found" when i click on items. I double checked every thing.

 

Please help. :(

This contribution works fine with that, any, version of oscommerce. You need to post the version of Ultimate SEO, your url and .htaccess file if you want help with such a problem.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

This contribution works fine with that, any, version of oscommerce. You need to post the version of Ultimate SEO, your url and .htaccess file if you want help with such a problem.

 

Thanks Jack,

 

Problem: "Ultimate_SEO_URLSv22d_10 added on 5 Jul 2010 by (you :)

) Jack_mcs " after installing it gives me "Error 404: File Not Found" when i click on items. I have "oscommerce-2.2rc2a" not "RC2"

 

URL is: www.Diamonds.LK

 

.htaccess is:

+++++++++++++++++++++++++++++++++++++++++++

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# 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

 

# Begin Ultimate SEO V2.2d

Options +FollowSymLinks

RewriteEngine On

 

# RewriteBase instructions

# Change RewriteBase dependent on how your shop is accessed as below.

# http://www.Diamonds.lk = 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 /

 

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

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING}

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

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

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 ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

# End Ultimate SEO V2.2d

 

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

#

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

++++++++++++++++++++++++++++++++++++++++++++++++

 

In the Instalation Step 3: Before Edit includes/functions/html_output.php ( problem could be due to Line 66 )

 

some lines that must be edited don't match: They are

 

Line 19:

Given: die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');

I have before Edit: die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');

 

Line 31:

Given: die('<br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

I have before Edit: die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>');

 

Line 66 <<<<===********************** could be the problem ******************************

Given: $link .= $separator . $_sid;

I have before Edit: $link .= $separator . tep_output_string($_sid);

 

Line 70

Given: }</b>

I have before Edit: }

 

Please Help if any one knows how to fix this problem. :(

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...