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

Re: [ManuGermany] mod_rewrite & page.cgi?g=

Quote Reply
Re: [ManuGermany] mod_rewrite & page.cgi?g= In reply to
Something like this should work;

Code:
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]

This will work based on your ROOT URL...i.e;

http://www.yoursite.com/Cool would transfer to http://www.yoursite.com/cgi-bin/page.cgi?g=Cool

You shouldn't need to add any new globals, or make any template changes. Just be sure NOT to pass &d=1 along in the URL; and then as far as LSQL is concerned, we are still running in static mode :)

Hope that helps.

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 mod_rewrite & page.cgi?g= ManuGermany 2234 Jul 18, 2004, 8:30 AM
Thread Re: [ManuGermany] mod_rewrite & page.cgi?g=
Andy 2152 Jul 19, 2004, 2:01 AM
Thread Re: [Andy] mod_rewrite & page.cgi?g=
ManuGermany 2154 Jul 19, 2004, 2:24 AM
Thread Re: [ManuGermany] mod_rewrite & page.cgi?g=
Andy 2165 Jul 19, 2004, 2:26 AM
Post Re: [Andy] mod_rewrite & page.cgi?g=
ManuGermany 2143 Jul 19, 2004, 2:42 AM