• Remove duplicate categories urls.

    Январь 13, 2011

    I’ve discovered that WordPress generates the same category page for http://exapmple.com/category/child and http://exapmple.com/category/parent/child which is not so good for SEO. The possible quick fix that worked for me — to add to the theme’s header.php the following code: if (is_category()) { list($dummy, $categoryRelative) = split(«category», $_SERVER["REQUEST_URI"]); $category_id = get_cat_ID( single_cat_title(«», false) ); $category_link = get_category_link( […]

Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org