Quote:
Originally Posted by chuckroast How would a discarded story get indexed anyway? Once a story is set to discard all links pointing to it are removed so a search engine wouldn't index or crawl it anyway correct? |
thanks Yankidank
the submitter could link to the discarded page and make crawl discovery that page or other search engine that dont follow robots...
better be safe ...
i also puted this on pligg.tpl for canonical link and to close all non existent category
{if $pagename eq 'story'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}{$navbar_where .link2}" />{/if}
{if $pagename eq 'published'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}/{$navbar_where.text2}/" />{/if}
{if $pagename eq 'index'}<link rel="canonical" href="{$my_base_url}{$my_pligg_base}/" />{/if}
{if $pagename eq 'story'}
{if $navbar_where.link2 == $login_url|replace:"/login.php?return=":""}
{else}
{php}
header('HTTP/1.1 404 Not Found');
header('Location:' .my_base_url.'/404error.php' );
die();
{/php}
{/if}{/if}
</head>
let say if i have one category called news
http://mydomain.com/news/article-to-show is correct
http://mydomain.com/a/article-to-show is not correct but shows the same story
http://mydomain.com/b/article-to-show is not correct but shows the same story
with the last part redirect all wrong story to 404