Post by dunn123 » Fri May 22, 2015 8:02 pm

Hi
i am trying to use my htaccess file with regular expressions perform 301 redirects on links that Google would class as duplicate content. Effectively paroduct pages that are accessed via category and sub category links.

Example of one product, there are 614 products in all in 4ish categroies each:
All of these pages:
http://www.thesweetiejar.co.uk/retro-sw ... ets-100004
http://www.thesweetiejar.co.uk/retro-sw ... ets-100004
http://www.thesweetiejar.co.uk/retro-sw ... ets-100004
http://www.thesweetiejar.co.uk/sweet-fl ... ets-100004
http://www.thesweetiejar.co.uk/gelatine ... ets-100004

Need 301ing to the canonical URL:
http://www.thesweetiejar.co.uk/barley-s ... ets-100004

SEO Freinedly URLs are switched on and OC version is 1.5.4

Thanks

New member

Posts

Joined
Wed Mar 02, 2011 7:40 pm

Post by soundzgood-nz » Fri May 22, 2015 8:12 pm

Isn't that the point of a canonical tag, to offer one url for the product regardless of the category stuff in between the domain and the product name in the url?

Simon

User avatar
Active Member

Posts

Joined
Sat Oct 25, 2014 5:15 pm
Location - New Zealand

Post by dunn123 » Fri May 22, 2015 11:40 pm

This exercise is to cover old links that may be book marked or indexed after I have done some seo restructuring on my clients website.

These links don't actually exist as links within the site anymore but as the site is 10 years old they will be linked to externally and they are being picked up as duplicate content still on google webmaster.
To make sure I cover all these links (as there will be around 2500) I want to do it with reg exp rather than manually having a list that big in my htaccess.

New member

Posts

Joined
Wed Mar 02, 2011 7:40 pm
Who is online

Users browsing this forum: No registered users and 31 guests