Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Need to change urls underscore to a dash

Quote Reply
Need to change urls underscore to a dash
I need to change the underscore, as in domain.com/cat_name to domain.com/cat-name
I'm assuming this is an easy fix, but I haven't a clue where this is at.


Thanks in advance
Quote Reply
Re: [SliderMan] Need to change urls underscore to a dash In reply to
I managed to find how to do it. In the file db_utils.pl
The underscore I have in Red can be changed to a dash. It's a little more google friendly to have dashes than underscores. Now if I could just figure our how to make the url lowercase rather than uppercase.

sub build_clean {
# --------------------------------------------------------
# Formats a category name for displaying.
#
my ($input) = shift;
$input =~ s/_/ /g; # Change '_' to spaces.
$input =~ s,/, : ,g; # Change '/' to ' : '.
return $input;
}