Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Creating link name as filename instead of 8.html

Quote Reply
Creating link name as filename instead of 8.html
Hi,

For search engine optimisation purposes I would like to generate my files as:

sitename.dom/category-name/sub-category-name/site-name.html

Rather than sitename.dom/Detailed/1.html (for example)

I appreciate that it may not be possible to have the category name (as a site can be in multiple categories) but how do I have the site name as the filename rather than simply ID.html ?

Any ideas?

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Creating link name as filename instead of 8.html In reply to
Its not a simple process I'm afraid. You have to modify Page.pm, Build.pm and nph-build.cgi. The <%next%> and <%prev%> links don't work too well either, and you have to write a seperate global to get the same functionality :(

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] Creating link name as filename instead of 8.html In reply to
Ah. Okay. Thanks Andy - will just keep my fingers crossed that it appears in the next build.

All the best,

Ross

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Creating link name as filename instead of 8.html In reply to
Do you have mod_rewrite enabled on your server? Yogi wrote a pretty cool mo_rewrite hack that does what you are asking 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] Creating link name as filename instead of 8.html In reply to
Ah cool - yes, we've got mod_rewrite - can you send me any more information on that?

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*
Quote Reply
Re: [servicepals] Creating link name as filename instead of 8.html In reply to
Here you go;

http://www.gossamer-threads.com/...i?post=216197#216197

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] Creating link name as filename instead of 8.html In reply to
Brilliant - many thanks!!

*-*-*-*-*-*-*-*-*-*-*
Servicepals.com is an online community for serving and retired military men and women. Visit us at http://www.servicepals.com. Development by Rawnet Limited
*-*-*-*-*-*-*-*-*-*-*