Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Dynamic to static solution found

Quote Reply
Dynamic to static solution found
I've stumbled on to a PHP solution for displaying dynamic (CGI) LSQL pages as static i.e. search engine /copy and paste friendly URLs.

I needed one of the pages im using as a category to update on each visit (page refresh) without using the standard query strings (/cgi-bin/page.cgi?g=page_name) or setting up cron job to update the static version.

Using Yogi's PageBuilder plugin (or you could upload it manually after each Directory Build) setup a blank PHP page that points to the Links SQL page you need to update eg. root/somecategory/index.php and place the following PHP code:


Works a charm for a few one off pages :D - not certain if you could implement it site wide tho.

Anyone see any reason's why this method wouldn't work?

Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Quote Reply
Re: [Chas-a] Dynamic to static solution found In reply to
Alternatively, you could set up a rewrite rule.

Iyengar Yoga Resources / GT Plugins