Hi – Can anyone help?
I have used some of the coding mentioned in (http://community.sellerdeck.com/arch...p/t-54467.html) in order to get my Canonical re-directs correct.
I started off by trying to insert the following code to put a canonical link on my filtered page results in to the standard meta tags page on the design tree and it came back incorrect but did insert it:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
<link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" />
</actinic:block>
After reading the above mentioned post I changed the code to:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22%29" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionPaginationIncludeFullPage%22%20%2f%3e%20%3d%3d%201" >
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionPaginationCurrentPageIndex%22%20%2f%3e%20%3e%200%29" >
<!-- Tell search engines how to index paginated sections -->
<link rel="canonical" href="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name=SectionPageName" encoding="perl" selectable="false" />');</actinic:block>">
</actinic:block>
</actinic:block>
And it worked – Thanks Peblaco!
However my question is that I am trying to put these links on pages so that my site knows to redirect on pages that have #SID numbers on the end of the URL. So I presumed that I would place the below code on to the same page below the above code
I therefore tried placing the below code in to the standard meta tags page presuming it would work and it doesn’t – am I simply placing the code in the wrong place, wrong page or is the code wrong for single product per page??
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22%29" >
<!-- Tell search engines how to index paginated sections -->
<link rel="canonical" href="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name=ProductPageName" encoding="perl" selectable="false" />');</actinic:block>">
</actinic:block>
</actinic:block>
I have used some of the coding mentioned in (http://community.sellerdeck.com/arch...p/t-54467.html) in order to get my Canonical re-directs correct.
I started off by trying to insert the following code to put a canonical link on my filtered page results in to the standard meta tags page on the design tree and it came back incorrect but did insert it:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" >
<link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" />
</actinic:block>
After reading the above mentioned post I changed the code to:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22%29" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionPaginationIncludeFullPage%22%20%2f%3e%20%3d%3d%201" >
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionPaginationCurrentPageIndex%22%20%2f%3e%20%3e%200%29" >
<!-- Tell search engines how to index paginated sections -->
<link rel="canonical" href="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name=SectionPageName" encoding="perl" selectable="false" />');</actinic:block>">
</actinic:block>
</actinic:block>
And it worked – Thanks Peblaco!
However my question is that I am trying to put these links on pages so that my site knows to redirect on pages that have #SID numbers on the end of the URL. So I presumed that I would place the below code on to the same page below the above code
I therefore tried placing the below code in to the standard meta tags page presuming it would work and it doesn’t – am I simply placing the code in the wrong place, wrong page or is the code wrong for single product per page??
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Product%20Page%22%29" >
<!-- Tell search engines how to index paginated sections -->
<link rel="canonical" href="<actinic:block php="true">echo '<actinic:variable name="CatalogURL" encoding="perl" selectable="false" />' . basename('<actinic:variable name=ProductPageName" encoding="perl" selectable="false" />');</actinic:block>">
</actinic:block>
</actinic:block>
Comment