Hi firstly ive installed the permalinks as /%post_id%/%postname%/
Looking at the source code of one of my posts, for example, a post called /mywebpost/ in the ‘debugging help, do not remove’ section in the header I can see this line of code:
link rel=’shortlink’ href=’http://www.mysite/news/?p=351′ />
So basically this line is telling google that another url exists ie p=351…as well as /mywebpost/(of course these pages are exactly the same)
I have a feeling this is causing serious duplicate content problems. Can you tell me how I remove the code?
I need this <link rel=’shortlink’ href=’http://www.mysite.com/news/?p=351′ />
code removed from all pages and posts as google is seeing two pages exactly the same but with different URLS.
This link code isn’t generated by the theme. The offical demo http://www.kriesi.at/themes/newscast/ doesn’t show this link text in the source code. I couldn’t find the word shortlink when I searched all theme files.
Maybe this code is generated by a seo plugin or other plugins.
thanks for your reply
is it not contained in the <!– Debugging help, do not remove –> section?
Hi according to this article http://www.mydigitallife.info/2010/08/12/how-to-disable-and-remove-shortlink-link-rel-hook-in-wordpress-header/
its a wordpress 3.0 thing.
Ive taken a look into the functions.php script as mentioned and cannot locate the ‘shortcut code’..although it has to be there somewhere.
Its extremely important that the code is removed from the head.
Can you help?
ok great I just add remove_action( ‘wp_head’, ‘wp_shortlink_wp_head’, 10, 0 ); to the functions.php
Its now gone.
I wonder if this could have caused a duplicate content problem?…because if google crawls this url p=314 or whatever and you have changed your permalink structure there will be two identical pages in the eyes of google.
Need to keep an eye out for this.
The topic ‘Serious Duplicate Content Question’ is closed to new replies.