[ic] Area tag and directories

rbragg 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:
> 
>   http://www.oursite.com/
> 
> all the internal links are:
> 
>   http://www.oursite.com/index.html
> 
> "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?
> 
> Thanks,
> 


Maybe try this?

[set mv_add_dot_html][/set]
  ...Your Link(s)...
[set mv_add_dot_html]1[/set]

This would at least take off the ".html" at the end of your links.
Rick





More information about the interchange-users mailing list