× Here you can get community support related to Tag Meta.

Canonical Help

More
11 years 1 month ago #1644 by Chianti
Replied by Chianti on topic Canonical Help
Hi Luigi,

i also have a question about the canonical url

i have a gallery section with tons of galleries. unfortunately there are a lot of duplicates coz of sorting, filters etc
i there a way to define canonical urls for those entries with 1 setting or do i need to define that for every url (gallery)?


so example :
my urls look like this
www.mysite.com/gallery/NameoftheGallery
so i do have double urls like
www.mysite.com/gallery/NameoftheGallery?start...
www.mysite.com/gallery/NameoftheGallery?filter...

do i need to define it for every gallery or is there an option where it works with only one setting for all the galleries?

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #1646 by admin
Replied by admin on topic Canonical Help
A possible soluton could be to use your GWT to set variables like start and filter as "useless", so Google will automatically ignore them.

You could also do this with Tag Meta. Create a rule for each gallery URL:

URL: /gallery/

And use {routeurl var1,var2,var3=myvalue,..,varN} macro to build the routing URL, using the "drop" variable feature (I just notice I forget to add in the documentation, I will add in the next version and in online documentation ASAP). You can ignore some variables just adding ! at the beginning, so in your case use:

{routeurl !start,!filter}

This should work...

Kind regards,
Luigi
The following user(s) said Thank You: Chianti

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #1649 by Chianti
Replied by Chianti on topic Canonical Help
Thanks for the quick answer Luigi,

So if i understood you well, i have to do this for every single gallery ?

so when i have 2 galleries like this
www.mysite.com/gallery/Trip-to-Paris/
www.mysite.com/gallery/Moms-BDay/

i have to define this once for the trip to paris gallery and once for the Moms Bday Gallery?

or can i define something like
www.mysite.com/gallery/**Placeholder**/
remove everything after / after placeholder

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #1651 by admin
Replied by admin on topic Canonical Help
No,
I wrote but probably not clear. If you need for ALL gallery, and they all have the common URL pattern to match like in your case, then you just need a single rule:
URL: /gallery/

Last thing, remember to put this rule at the beginning (before others) and set "Last rule" to false, so it will be always applied to any /gallery/ URL and you can have additional rules for the same URL.

Kind regards,
Luigi
The following user(s) said Thank You: Chianti

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #1652 by Chianti
Replied by Chianti on topic Canonical Help
ohh ok, got it :)

at least for the url

how about the canonical url?

Which value should i input there?

so all links like
www.mysite.com/gallery/NameoftheGallery?start...
www.mysite.com/gallery/NameoftheGallery?filter...
should have this as canonical url www.mysite.com/gallery/NameoftheGallery

sorry for my stupid questions, i'm pretty new to tag meta :(

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago - 11 years 1 month ago #1653 by admin
Replied by admin on topic Canonical Help
The canonical should be automatically generated if you put this macro in the canonical field:
{routeurl !start,!filter}

Just try and check the generated pages.
Last edit: 11 years 1 month ago by admin.
The following user(s) said Thank You: Chianti

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds