Showing http://www.mysite.com/shopping instead of http://www.mysite.com/. Have gone through almost all the posts in the forum but couldn't find a working solution. HeaderExclusivity did not help.
Pleas guide. Thanks.
Hi,
Ah - as long as they're both correct that's great - because it means that your SEO plugin is picking up the correct canonical URL to use, so now you can suppress the one generated by PriceTapestry.org. To do this, simply look for the following code at line 179 of pto.php...
print "<link rel='canonical' href='".$pto_canonical."' />";
...and either comment out or delete that line, and that should do the trick!
I will check out how in the next version to detect whether another plugin has already generated a canonical entry.
Cheers,
David.
--
PriceTapestry.com
Hi,
An upgrade to Price Tapestry will be released tomorrow and immediately following that I'll be upgrading the plugins to take advantage of the performance improvements, as well as include major improvements to PriceTapestry.org for WordPress following feedback received so far from version 1 users.
Part of this will be a hook into the function used by other plugins to generate canonical and other page specific links, and if you would like to try the code for this now, you can give it a go by editing your pto.php and add the following code right at the end, just before the closing PHP tag:
function pto_link($link)
{
global $pto_config_permalink;
if (trim($link,"/") == get_bloginfo('url').$pto_config_permalink)
{
$link = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
}
return $link;
}
add_filter('page_link','pto_link');
add_filter('post_link','pto_link');
add_filter('post_type_link ','pto_link');
add_filter('the_permalink','pto_link');
(if still enabled, turn Header Exclusivity back off to ensure that this method is working independently of that)
Cheers,
David.
--
PriceTapestry.com