Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Hi Jack

 

Have just double double checked all the changes for the installation and all is correct.

I am running this all from our isp's unix server. I am checking with them to see if mod_rewrite is enabled.

 

I shall let you know

 

Thanks

 

Dan

 

On my hosting i can't use Options +FollowSymLinks. Try adding # in front of it.

Link to comment
Share on other sites

Your .htaccess file is setup correctly so either the problem is that the file changes have not been made correctly or something is wrong on your server - no mod-rewrite or a Windows server. You should check with your host to verify you meet the requirements of the contribution. They may also be able to tell you why the error is occurring. That error can sometimes occur due to some formatting or command in the .htaccess file.

 

Hi Jack

 

Just wanted to say thanks for pointing me in the right direction. Site is all working a treat now.

It was the .htaccess file and a setting on our server which needed to be disabled. (followsymlinks)

 

Thanks again

 

Dan :-)

Link to comment
Share on other sites

My website accepts the following type of links "www.mywebsite.com/?cPath=xx" without redirecting them. I want this type of link to 301 redirect to the seo url. Can you help me?

That's not a valid link. If you mean "www.mywebsite.com/index.php?cPath=xx," the Ultimate SEO issues the 301 automatically.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Just wanted to say thanks for pointing me in the right direction. Site is all working a treat now.

It was the .htaccess file and a setting on our server which needed to be disabled. (followsymlinks)

You're welcome. I'm glad you were able to find the problem.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

That's not a valid link. If you mean "www.mywebsite.com/index.php?cPath=xx," the Ultimate SEO issues the 301 automatically.

You are right. For "www.mywebsite.com/index.php?cPath=xx," it redirects normal. But links like "www.mywebsite.com/?cPath=xx" work for every category and subcategory on my site. I used to redirect index.php to www. While the redirect was active "www.mywebsite.com/index.php?cPath=xx," became "www.mywebsite.com/?cPath=xx" and not the seo url. But now i have removed the index.php redirect and those links still work.

Link to comment
Share on other sites

You are right. For "www.mywebsite.com/index.php?cPath=xx," it redirects normal. But links like "www.mywebsite.com/?cPath=xx" work for every category and subcategory on my site. I used to redirect index.php to www. While the redirect was active "www.mywebsite.com/index.php?cPath=xx," became "www.mywebsite.com/?cPath=xx" and not the seo url. But now i have removed the index.php redirect and those links still work.

Not that it matters now, but removing index.php should only be done for the home page. For your current situation, you would have to put in redirect code in the .htaccess file to redirect those links. If there are not many of them or they are not important, then don't worry about it and let the search engines sort it out.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Not that it matters now, but removing index.php should only be done for the home page. For your current situation, you would have to put in redirect code in the .htaccess file to redirect those links. If there are not many of them or they are not important, then don't worry about it and let the search engines sort it out.

That is what i try to do, redirect them to index.php?cPath=xx but with no success until now. If you could suggest me what i should put in my .htaccess to redirect from ?cpath=xx to index.php?cpath=xx...

if it helps, this is my .htaccess

# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks

<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 RewriteBase using the instructions above  
 RewriteBase /

RewriteCond %{HTTP_HOST} ^probiolife.ro$
RewriteRule ^/?$ "http\:\/\/www\.mywebsite\.com" [R=301,L]

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}
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mywebsite.com/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Link to comment
Share on other sites

Hi chemo,

I installed you contrib, which works for the products if it is switched on.

But I get double slashes on the URL.

Like

"http://www.domain.de/folder//seo-url-testxxxxxxxxx"

It this normal ?

 

When I switch it off, it does not find any page anymore.

 

It also does not find the "checkout_shipping.php" when it is switched on and I want to go on with the payment procedure step.

 

regards

m@ario

Link to comment
Share on other sites

But I get double slashes on the URL.

Like

"http://www.domain.de/folder//seo-url-testxxxxxxxxx"

It this normal ?

 

When I switch it off, it does not find any page anymore.

 

It also does not find the "checkout_shipping.php" when it is switched on and I want to go on with the payment procedure step.

The double slash is due to an improperly setup configure file. See previous posts for a link to how to set that up.

 

To turn it off, you need to turn off all optons in admin. See previous posts for more detail about this.

 

The contribution doesn't have anything to do with the checkout urls so that appears to be another issue.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

This is the support thread for the Ultimate SEO URLs v2.1 release.

 

I wanted to create a separate thread for this release as the contribution has been recoded from the ground up and is completely different from <=2.0b releases.

 

<span style='font-size:14pt;line-height:100%'>FEATURES</span>

It's FREE

...some don't appreciate this fact. This release is over 1,700 lines of custom coded, golden sweet, search engine optimization goodness. I have spent an incredible amount of time not only creating the code but also testing, debugging, adding features, and of course making the best damn documentation of any contribution.

 

So, as a forward before you install or upgrade and ask for support remember this: ask nicely and say thank you. The increased search engine position and resulting traffic from this contribution may translate into thousands in revenue for your store...but for me it's a losing proposition as it is released for free, supported for free, and the only return I get is from positive feedback and the occassional donation. Thus, I have a pretty short fuse with those that feel I owe them anything.

 

Abstracted Code

The advantage to the abstraction is that the code can be used beyond the catalog side. The most immediate use will probably be for admin side data feeds like Froogle, Yahoo, etc. This adds the benefit of keyword relevant URLs for every link going out of your store to the world.

 

Integration of Addon Scripts

The Advanced Cache and Automatic Redirect classes are now native to the base class. This completes the development of those tools and makes the overall package easier to maintain, upgrade, and develop in the future.

 

Performance Optimization of the Code / Queries

There were a few store owners that had extremely large catalogs (greater than 50K products or categories) that were having issues with the 2.0b release. The code was not performance driven other than creating the SEO URLs. This release has been coded from the ground up to be a Porsche...fast, lean, and mean...no matter how large or small the catalog size. The code has been load tested on stores with over 100K products / categories and also some with less than 100. There is no difference in performance between the two extremes.

 

The heart of the performance is the use of efficient queries and code...but also the effective use of the cache functions. The available options allow a store owner to turn off cache completely (for large stores) or turn off cache for certain parts. This allows complete control of the performance of the code and the use of resources can be throttled at leisure.

 

As everyone knows, I am a performance obsessed coder. Naturally, I have performance analysis code native to the core that will help you fine tune the installation. What's the use of having options if you can't see what effect they are having on the overall page performance?

 

Better Support for Special Characters

I have added better regex code to strip characters but know the issue of international translations are pretty tricky. As a result, I have added the option of having the store owners define their own translations. These can be added through the admin control panel.

 

Simplied Installation / Upgrade Procedure

The contribution has been transformed into a more modular package which means fewer code edits. This means that initial installation is very much improved and easier. Also, in the future all upgrades will simply be overwriting 1 file. How much easier can it be? :)

 

As for the database settings: the contribution has an installer class that will automatically detect whether it needs to upgrade or install itself. Thus, there is no need to execute SQL files in phpMyAdmin or even call installer scripts through the browser. The only step needed to install / upgrade database settings is to call your store one time...neat, right? I hope the installer class proves to be as useful as I coded it to be...especially for future upgrades.

 

More Pages are SEO'd

The past releases focused squarely on the meat and bones of any store: the product and category pages. Since that is very mature it has come time to expand the family of natively supported parts of the store. As of this release the following pages have SEO URLs:

 

1) Product Pages

2) Category Pages

3) Article Topics

4) Article Info

5) Information Pages

6) Product Reviews

7) Product Review Info

8) Popup Images

 

The power of the contribution code is that the list can easily be expanded to include most anything.

 

<span style='font-size:14pt;line-height:100%'>SUMMARY</span>

This release is a complete recode of the contribution and represents a step forward with development. It is the backbone of the eventual v3.X series and is transitional...meaning that when v3.0 is released upgrading will be as simple as overwriting 1 file.

 

There are many new features introduced but the enhanced peformance is enough to warrant upgrade / installation.

 

This first post is a placeholder for the actual download link. I wanted to create the documentation with a link directly to this thread...so, had to create this thread before posting the contribution to the download area. It's a backward way of doing things but until the osCommerce team fixes their contribution system that's how it is.

 

<span style='font-size:12pt;line-height:100%'>Please do not post a reply to this thread until I get the download link posted.</span>

 

Bobby

Link to comment
Share on other sites

Hello,

I really appreciate all the help given by you & other peoples of good will toward peoples you do not know!

But I should ask you make the descriptions a little more clear as not all peoples are professionals like you. I myself am a beginner & need more help than you gave to understand some parts! I believe you appreciate that.

Meanwhile, I should tell you that I have successfully installed the file in my website but I did not understand the part for the .htaccess & if I should make such file in the directory/my-shop?

Secondly, although I have update the .htaccess in the root & I see the Seo URL link in the admin of my website shop, I cannot see it work with the listing & there is no place for it in the listings of the items OR am I wrong & how it works? Possibly some jpg pictures would work fine to show but whatever you decide.

I would appreciate if you answer fast.

Best Regards,

John

Link to comment
Share on other sites

Hello,

I really appreciate all the help given by you & other peoples of good will toward peoples you do not know!

But I should ask you make the descriptions a little more clear as not all peoples are professionals like you. I myself am a beginner & need more help than you gave to understand some parts! I believe you appreciate that.

Meanwhile, I should tell you that I have successfully installed the file in my website but I did not understand the part for the .htaccess & if I should make such file in the directory/my-shop?

Secondly, although I have update the .htaccess in the root & I see the Seo URL link in the admin of my website shop, I cannot see it work with the listing & there is no place for it in the listings of the items OR am I wrong & how it works? Possibly some jpg pictures would work fine to show but whatever you decide.

I would appreciate if you answer fast.

Best Regards,

John

I'm sorry but I don't understand what you are asking. Are you saying you installed the contribution and it isn't working? If so, what error/symptom are you seeing?

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello,

 

I've just installed Ultimate SEO URLsV 2.2d-9

 

The URLs look great, but now my checkout is broken.

 

All orders come through as "order number: 0"

 

I receive email notification of these orders, but nothing appears in admin.

 

I've removed the addon completely and reinstalled it.

 

Same thing,

 

Has anyone ever seen this before?

 

Any advice?

 

Thanks,

Alex

Link to comment
Share on other sites

I've just installed Ultimate SEO URLsV 2.2d-9

 

The URLs look great, but now my checkout is broken.

 

All orders come through as "order number: 0"

 

I receive email notification of these orders, but nothing appears in admin.

 

This contribution doesn't have anything to do with checkout other than passing a valid link to the checkout pages. If you don't use oscommerce-type code for the checkout links, it might cause a problem. Or if you have some redirect code in your .htaccess file that affects those urls, that would do it. But neither of those are related to this contribution. If you can place an order with this contribution turned off, then it has to be something like that.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello,

 

I've just installed Ultimate SEO URLsV 2.2d-9

 

The URLs look great, but now my checkout is broken.

 

All orders come through as "order number: 0"

 

I receive email notification of these orders, but nothing appears in admin.

 

I've removed the addon completely and reinstalled it.

 

Same thing,

 

Has anyone ever seen this before?

 

Any advice?

 

Thanks,

Alex

 

I just look at my server info in Admin. It says I'm running

osCommerce 2.2-MS2

 

is my version of osC incompatible with Ultimate SEO URLSv22d-9?

 

Thanks,

Alex

Link to comment
Share on other sites

I just look at my server info in Admin. It says I'm running

osCommerce 2.2-MS2

 

is my version of osC incompatible with Ultimate SEO URLSv22d-9?

Yes, it is. If there was a problem with compatibility or a requirement not being met, the url's wouldn't redirect at all. But you said they were working so that isn't an issue.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Yes, it is. If there was a problem with compatibility or a requirement not being met, the url's wouldn't redirect at all. But you said they were working so that isn't an issue.

 

Thank You for the prompt replies,

 

I'm looking to see if I'm using oscommerce-type code for checkout, I'm not sure where to find this. I inherited this store from a previous admin. I am not using any redirects.

Link to comment
Share on other sites

This contribution doesn't have anything to do with checkout other than passing a valid link to the checkout pages. If you don't use oscommerce-type code for the checkout links, it might cause a problem. Or if you have some redirect code in your .htaccess file that affects those urls, that would do it. But neither of those are related to this contribution. If you can place an order with this contribution turned off, then it has to be something like that.

 

Do you know where I can check to see if I am using oscommerce-type code for the checkout links? Checkout does work fine when I remove this addon, it's very strange

Link to comment
Share on other sites

Hello,

 

I've just installed Ultimate SEO URLsV 2.2d-9

 

The URLs look great, but now my checkout is broken.

 

All orders come through as "order number: 0"

 

I receive email notification of these orders, but nothing appears in admin.

 

I've removed the addon completely and reinstalled it.

 

Same thing,

 

Has anyone ever seen this before?

 

Any advice?

 

Thanks,

Alex

 

I have the same problem. My version is osCommerce 2.2-MS2.

 

I further checked the database, order has been created with correct orders_id on the orders table, but orders_id are 0 in the orders_products and orders_total table. This makes the order hidden from the admin page.

 

may i know what i can do to fix the problem? i off this great contribution temporarily, but i want to use it very much. please help, many thanks!

Link to comment
Share on other sites

Do you know where I can check to see if I am using oscommerce-type code for the checkout links? Checkout does work fine when I remove this addon, it's very strange

It's the link to the checkout. It has to use the tep_href_link function. If you can complete a checkout, I doubt that is your problem. But since this contribution works on the categories and products, it is doubtful it is the contribution so this isn't something that is supported in this thread.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

i am getting an odd redirect when i click on any product or category it just goes right back to index.php. this is my htaccess file - any help would be appriciated.

 

http://www.awardsbysilverleaf.com/index.php

 

# $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

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


Options +FollowSymLinks
RewriteEngine On 
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}

and yes the installation of oscommerce is in the root directory :)

Edited by security_man
Link to comment
Share on other sites

i am getting an odd redirect when i click on any product or category it just goes right back to index.php. this is my htaccess file - any help would be appriciated.

See the previous posts regarding this problem and the code in templates that is causing it.

Support Links:

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

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I have the same problem. My version is osCommerce 2.2-MS2.

 

I further checked the database, order has been created with correct orders_id on the orders table, but orders_id are 0 in the orders_products and orders_total table. This makes the order hidden from the admin page.

 

may i know what i can do to fix the problem? i off this great contribution temporarily, but i want to use it very much. please help, many thanks!

 

Hello,

 

I just installed Ultimate_Seo_Urls_2.1d_STABLE_FINAL_r172, and have not had any problems with order numbers: 0 or checkout.

 

Best of luck,

Alex

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.
Note: Your post will require moderator approval before it will be visible.

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