Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem about display pages as static and dynamically

Quote Reply
Problem about display pages as static and dynamically
Hello everybody.
I run my site dynamically but display pages as static (/index.php instead of /page.cgi?p=whatever) by adding some lines to the .htaccess file.

Example:

Code:
RewriteRule ^(.*).php /cgi-bin/links/page.cgi?g=$1.php [L]
I now want to add a second template set but I can't get it to display using the dynamic URLs - /cgi-bin/links/page.cgi?t=luna2

It returns:

Quote:
Illegal modulus zero at
/home/mysite/public_html/cgi-bin/links/admin/Links/Utils.pm
line 547.
Do I need to add another rewrite rule to the .htaccess?

Thanks !
G9!

Last edited by:

applenew: Jul 2, 2015, 2:43 AM
Quote Reply
Re: [applenew] Problem about display pages as static and dynamically In reply to
Hi,

Why are you using .php as an extension, if you are running it dynamically? Whistle

Code:
Illegal modulus zero at
/home/mysite/public_html/cgi-bin/links/admin/Links/Utils.pm
line 547.

That error is coming from column_split(), which means the length of the categories being returned is 0 (so it can't divide by that)

Quote:
/cgi-bin/links/page.cgi?t=luna2

Does it work if you go direct to that URL? (not using the rewrite)

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!