Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Add a canonical link to the message page (How to add a canonical link to the message pages)
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Return to the default flat view Create a new topic Submit Reply
Add a canonical link to the message page [message #166905] Fri, 23 March 2012 16:12 Go to previous message
rbenedetti is currently offline  rbenedetti   United States
Messages: 7
Registered: December 2010
Junior Member
remove from buddy list
ignore all messages by this user

Here is another small thing I would like to do to optimize how my website is crawled.

I would like to add a canonical link in the header of the message pages.
Something like:
<link rel="canonical" href="www.myfudform.com/t/3881/" />
in the header of the HTML page.

The reason why I want to do that is that without, there are many url driving to the same content.
For instance:

www.myfudform.com/t/3881/ ( good URL) and www.myfudform.com/?t=msg&th=3881&goto=11836&#msg_11836 (duplicate URL)

Adding this canonical link in the header would solve the problem.

Note: this has nothing specific and would be a generic improvement to FUDForum.

Thanks to let me know if you have any idea how to hack this.

[Message index]
Read Message
Read Message
Previous Topic: Why a 302 redirect?
Next Topic: Newbie question: where to check in bug fix on sourceforge?
Goto Forum:

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Feb 24 22:48:51 EST 2020

Total time taken to generate the page: 0.00637 seconds