Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [hegu] Static category pages, dynamic detailed pages

Quote Reply
Re: [hegu] Static category pages, dynamic detailed pages In reply to
You should be able to do it using the following in a .htaccess file:

Code:
RewriteEngine On

RewriteRule Detailed/([0-9]+)\.html /cgi-bin/links/page.cgi?g=Detailed/$1.html [L]

That will work for the detailed pages like /Detailed/1234.html

Then if thats working, you may as well comment out the code for building detailed pages. Around line 524 in nph-build.cgi, find (and add the bit in red):

Code:
# Only build validated links
$cond ||= GT::SQL::Condition->new;
$cond->add(VIEWABLE);
$cond->add('Timestmp','<',1);

That should force it to **not** build detailed pages (Which should save time on your builds)

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!
Subject Author Views Date
Thread Static category pages, dynamic detailed pages hegu 5384 Dec 21, 2011, 8:50 PM
Thread Re: [hegu] Static category pages, dynamic detailed pages
Andy 5280 Dec 22, 2011, 3:39 AM
Thread Re: [Andy] Static category pages, dynamic detailed pages
hegu 4892 Mar 1, 2012, 7:33 PM
Thread Re: [hegu] Static category pages, dynamic detailed pages
Andy 4870 Mar 2, 2012, 12:43 AM
Thread Re: [Andy] Static category pages, dynamic detailed pages
hegu 4886 Mar 2, 2012, 9:21 AM
Thread Re: [hegu] Static category pages, dynamic detailed pages
hegu 4847 Mar 2, 2012, 12:27 PM
Post Re: [hegu] Static category pages, dynamic detailed pages
Andy 4793 Mar 3, 2012, 4:00 AM