Gossamer Forum
Home : Products : Gossamer Links : Discussions :

I really need some help with this!

Quote Reply
I really need some help with this!
Hi everyone,

I simply cant find it if there is a post for this in LSQL forums..
I would like to be able to change the build output from ww*w.doman.com/Category_Name/index.html to ww*w.doman.com/Category_Name/ anywhere where the script builds the links to categories and subcategories. ..like home.html and Related and Subcategories in category.html.
I remember there was a code hack for Links 2 but I don't know how to do it for LSQL. All my categories are indexed by Google and other SE WITHOUT the ..../index.html and I think that if I ever want to change the index extension to let say .SHTML, .JSP, .PHP or anything else it is better for SE to index and stay ONLY with the category rootslash /

Any help on this with code hack or rewriterule is VERY VERY much appreciated!

Greets
Koki

Last edited by:

Koki: Apr 10, 2005, 5:51 PM
Quote Reply
Re: [Koki] I really need some help with this! In reply to
No one who can help me with this....?Angelic

Koki
Quote Reply
Re: [Koki] I really need some help with this! In reply to
Hi,

You *could* do it with a global, but it may have adverse effects on other URL's.. so be careful =)

<%global_name($string_to_clear)%>

Code:
sub {
my $tmp = $_[0];
$tmp =~ s|\Q/index.html|/|sig;
return $tmp;
}

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] I really need some help with this! In reply to
Andy , can you give me some more directions how to implement this?
What exactly should be this $string_to_clear?
I am bad with code Unsure


P.S. What about hacking the lsql code? What file and code part of it takes care of how the categories and subcategories links will appear....if you got idea though?


Thanks for your help:)
Koki