September 22, 2010 at 4:13 pm #1274
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.September 23, 2010 at 6:39 am #34662
This link code isn’t generated by the theme. The offical demo http://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.
The DudeSeptember 23, 2010 at 7:51 am #34663
thanks for your reply
is it not contained in the <!– Debugging help, do not remove –> section?September 23, 2010 at 8:01 am #34664
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?
Many thanksSeptember 23, 2010 at 8:05 am #34665
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.