Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [rascal] New template: Static

Quote Reply
Re: [rascal] New template: Static In reply to
Andy loves his rewrite rules! :)

For search engine clarity, and such, I'd use a URL like:

http://www.domain.com/info/something.html
eg:
RewriteRule ^info/(.*)\.html /cgi-bin/page.cgi?p=$1 [L]

Where "info" is your keyword. That let's you add lots of new pages, and is
a good solution for adding in "about", "Contacts", "Privacy", and other
generic, or basic information pages about your site.

If you are running in [SE friendly] dynamic mode, don't use "info" if that is one of your
top level categories, or forget to add a d=1:

RewriteRule ^info/(.*)\.html /cgi-bin/page.cgi?d=1&p=$1 [L]

And, make sure to have an index.htm(l), even if it's just a blank file.

These suggestions can work for both static, and dynamic, modes, depending
on what effects/results you are looking for.

But, as in the original question, to add real static pages, you need to
edit Build.pm, or use a plugin.

A simple routine to build "extra" static pages will be included in the
UltraWidgets Toolbox due out shortly. It will be _simple_ but a way for
you to use the template system to update content, or update headers, by
simply listing the templates you want built in a list. Nothing fancy, just
whatever page.cgi?p= would display, but written to a file.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread New template: Static rascal 2656 Jan 11, 2005, 6:42 AM
Thread Re: [rascal] New template: Static
pugdog 2595 Jan 11, 2005, 7:28 AM
Thread Re: [pugdog] New template: Static
rascal 2567 Jan 12, 2005, 8:51 PM
Post Re: [rascal] New template: Static
Andy 2565 Jan 13, 2005, 1:41 AM
Post Re: [rascal] New template: Static
pugdog 2561 Jan 13, 2005, 2:27 AM