Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Canonical URL links

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
I asked the original creator of this contribution, Mathieu from webshoptimizer.com to see if I could use this contribution to redirect search engines to the right URL without the affiliate references.

All credits go to webshoptimizer.com
Here is the Solution
okay i figured out a rough way to fix the problem.

it looks like the author was looking to remove trailing slashes in the url. however my server doesn't put this trailing slash so it was making my .com or .net into .co and .ne


$domain = substr((($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER), 0, -1); // gets the base URL minus the trailing slash

Remove the [, -1] from the code

so it looks like this


$domain = substr((($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER), 0); // gets the base URL minus the trailing slash



works fine for me now.
This contribution will add the new canonical url link tag to your osCommerce webshop. The canonical link tag was recently introduced by Google, Yahoo! and Live and tells the search engines which URL it should have for the current page. This will prevent that content available on irregular urls will not be tagged as duplicate content.

This contribution will improve indexation of your website and prevent duplicate content.

For more information about the canonical url link tag visit: http://www.webshoptimizer.com/canonical-links-for-oscommerce-beta/
   Posted on: 02/27/2009     See contribution details Request Installation with Paid service