Andy wrote:
You wanna remove the index.html from all the URLs? Give this a go:
strip_indexhtml
Code:
sub { my $tmp = $_[0];
$tmp =~ s/index\.html//sig;
return $tmp;
}
Then call in subcategory.html (for example), with:
Code:
<%strip_indexhtml($URL)%%>Cheers
The code above works fine. But I just changed it for a few seconds, cause links with urls like
http://www.mydomain.com/categeory/index.html
are still working, too.
I think google would now spider a lot of duplicate urls :-(
PS: The code above did not work on my home.html in this part. It should work, cause subcategory.html is called.
Any suggestions why it does not work???
Code:
<%set split = Links::Utils::column_split($category_loop.length, $home_category_cols)~%> <div class="clear">
<%loop category_loop%>
<%~set splitmod = $row_num % $split%>
<%~if row_num == 1 or splitmod == 1 or split == 1%><dl><%endif%>
<%~include subcategory.html%>
<%~if row_num == $category_loop.length or splitmod == 0%></dl><%endif%>
<%~endloop%>
</div>
Matthias
gpaed.de