[ic] Area tag and directories
redhat at rickbragg.net
Sun Aug 15 18:32:02 EDT 2004
Jamie Neil wrote:
> Hi All,
> I've just been looking at the urls used for linking in to one of our
> sites, and noticed that while externally most links to the homepage are
> in the form:
> all the internal links are:
> "So what?" I hear you say. Well although this doesn't cause navigation
> problems, I have a feeling that Google (and maybe other engines) treat
> /index.html and / as different pages as far as ranking is concerned,
> which means that potentially we are missing a trick.
> At the moment if you use a directory in the area tag you get this:
> [area href="directory/"] = /directory/.html
> I know there is a cfg option to specify the page suffix for a catalog
> (HTMLsuffix), but what I wanted to be able to do is switch off the
> suffix selectively for directories. e.g.:
> [area href="page"] = /page.html
> [area href="directory/"] = /directory/
> That way we could do all internal links to the homepage like this:
> [area href=""] = /
> The code change should be fairly simple - just match pages with a
> trailing "/" (or the null page) and leave off the suffix - I just can't
> seem to find the code that deals with it. Can anyone point me in the
> right direction?
Maybe try this?
This would at least take off the ".html" at the end of your links.
More information about the interchange-users