Gossamer Forum
Quote Reply
Change 'more' in URL
Is there a way to change 'more' in URL without making changes in files; global or something?

If not, which files do I need to modify to change ALL instances of 'more' (for static pages, dynamic, span pages toolbars etc...)?

Example:

I would like to change

.../my_category/more3.html

to

.../my_category/mytext3.html


Thanks in advance!
Quote Reply
Re: [Payooo] Change 'more' in URL In reply to
Not by default I'm afraid. Your best bet, would be to use mod_rewrite to change it.

Code:
RewriteEngine On
RewriteRule mytext(.*)\.html more$1.html [L]

Not guaranteed to work (I'm far from a mod_rewrite guru), but it may do Smile

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] Change 'more' in URL In reply to
Hi Andy!

I have already tried something similar, but span pages toolbar will still create links to more1/2/3.html ...

So I changed Build.pm, Page.pm and nph-build.cgi.

I know that this is not the best approach, but I hope GT will make this option available in the next version of LinksSQL.

Thanks!
Quote Reply
Re: [Payooo] Change 'more' in URL In reply to
You could just pass it through a global...

<%replace_next($next_span)%>

Code:
sub {
my $in = $_[0];
$in =~ s|next(\d)|newpage$1|sg;
return $in;
}

My regex isn't the best when it comes to pattern matching, but it should work :)

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!