Jump to content

 

Storekeeper

Member Since 03 Oct 2011
Offline Last Active Mar 21 2012 11:07 PM
-----

#126704 Missing trailing slashes in URL are causing duplicate content issue

Posted by Storekeeper on 24 November 2011 - 08:12 PM

YEAAAAH !! :D

Thanks Adrian8, these 3 lines solved my problem!!!

So now all my categories redirect properly to the url with the trailing slash, and I don't have to worry about duplicate content anymore!

Great suggestion, and way better than the canonical solution I was resigned to adopting.

THANK YOU!


Hi Storekeeper,

Try this code before any other rewrite code:-

RewriteCond %{REQUEST_URI} !\.[^./]+$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://domain.com/$1/ [R=301,L]

First line checks that the url does not contain . (dot reference to any file)
Second line checks if url is missing a / trailing slash (avoids 301 redirect if trailing slash is already appended)
Last line finally appends trailing slash and redirect only to directories without the trailing slash

Hope this solves your issue :)




#123835 Visitors need to Filter by Product Options

Posted by Storekeeper on 16 October 2011 - 11:22 PM

colortone:

Thanks again for your time composing a detailed description of what that addon can do. It's probably great for those who can benefit from it, however, how is that related to product options at all?

Unless you are suggesting that I manually do what I described above, and create Features that parallel (mirror) my Product Options. So if I have a Product Option "Sizes", then I would create a Feature named "Size" and finally a Filter ("Choose Your Size") based on this new Feature "Size". The visitors would use the Filter to select only Products whose Feature Size matches their choice.

If that's your idea, then I don't really see the need for this Addon, since CS-Cart seems to hide the filtered-out options by default. As an example, please visit the demo cart and choose Adidas. Notice that the price range $100-$150 automatically disappears, because there are no Adidas products in that price range. This "narrowing-down effect" is not due to this addon but standard cart behavior.

Beside, using only Features and not Options won't work for me because of inventory control, so I would need to keep Options and create mirrored Features.

However,I will have to synchronize them manually each time I run out of a Option (or Combination). i.e., no more Laced Spiked-Heel shoes in size 48? Then I would go edit its Product Feature and uncheck size 48 so it wouldn't show up anymore in the Filtered Results for size 48. That's easy to do if you only have a few static products, but if you have thousands and work with close-outs, then it's a nightmare to try to keep Features synchronized with your actual physical inventory.

That's why I suggested automation for this task.


WHAT I AM TRYING TO GET is the Product Option "Clothing Size:" (see this demo cart page) that you see in the product block at the center to be ALSO in the left column as a Filter - as in the Macy's example above.

I hope to have made it clear this time, if not please let me know.