Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Canonical Suggestion (http://forum.bytesforall.com/showthread.php?t=3993)

Larry Oct 21, 2009 12:03 PM

Canonical Suggestion
I would like to suggest adding the following code to the header.php file in the next upgrade:

<?php if ( is_home() ) { ?><link rel="canonical" href="whatever needs to go here to add the home page url/" />
<?php } ?>

Not only is the canonical tag useful for limiting duplicate content issues with various posts and pages with different urls, different versions of the home page can be directed towards one style as well.
ie: with www. or without www. in the url.

The way the php is written now, it only adds the canonical tag to single posts or pages.

All times are GMT -6. The time now is 10:28 AM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.