[wp-hackers] Internal links

Otto otto at ottodestruct.com
Thu Dec 3 15:00:57 UTC 2009


No, but there are plenty of reasons that one should not create those
sorts of links.

Your content doesn't have a fixed location. The same content can be
shown at http://example.com (the homepage),
http://example.com/2009/12/article-name (the single post page),
http://example.com/archives/2009/12 (the monthly archive pages), in an
RSS or ATOM feed, on other sites, in Google, etc...

No relative link is guaranteed to work on all those pages, because
relative links are relative to the *current* page location, which can
be many things.

An absolute link is better, because it always works, no matter where
your content is displayed from.

Always use absolute links if you want things to absolutely link to the
right place.

-Otto
Sent from Memphis, TN, United States


On Thu, Dec 3, 2009 at 7:49 AM, Vlad GURDIGA <gurdiga at gmail.com> wrote:
> Hello,
>
> Is there any reason why one cannot create an internal link? Like:
> ./2009/12/03/article-title.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list