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

Fed-up with rewrite rules

Quote Reply
Fed-up with rewrite rules
Day 3 of trying to get rewrite rules working and yes I've read 10,000 pages and examples of rewrite, but I just don't get it. Thanks to everyone who has already tried. I have managed to string together everyones suggestions into a semi-working set of rules.

See my other posts about this (they shouldn't be hard to find).
At the rate I am going ( 1 line a day ), I ought to be able to have this figured out by the time GLinks 4 comes out.

This works (except css - I don't get any css, just the flattened version - nice)
RewriteEngine On
RewriteRule ^$ /cgi-bin/links/page.cgi [L]
RewriteRule ^([a-zA-Z0-9-]+)\.html /cgi-bin/links/page.cgi?p=$1 [L]
RewriteRule ^links/(.*)$ /cgi-bin/links/page.cgi?g=$1 [L]

So I add a rule (currently in place at supportmusicians.com):
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^$ /cgi-bin/links/page.cgi [L]
RewriteRule ^([a-zA-Z0-9-]+)\.html /cgi-bin/links/page.cgi?p=$1 [L]
RewriteRule ^links/(.*)$ /cgi-bin/links/page.cgi?g=$1 [L]

Now I get "basic" CSS AND rewriting of urls works (ie Cool, New and Categories etc...)
NOW images don't display.

See supportmusicians.com
Notice the absence of images (logos, folder icons, login/logout)

I can't be the only one using rewrite and having problems with the new .css model.

Do I need to implement pugdogs setup with an EMPTY "links" directory? view post

HELP!!!!
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Subject Author Views Date
Thread Fed-up with rewrite rules rgbworld 2988 Apr 15, 2005, 10:33 PM
Post Re: [rgbworld] Fed-up with rewrite rules
Andy 2877 Apr 16, 2005, 5:21 AM
Thread Re: [rgbworld] Fed-up with rewrite rules
ccunet 2880 Apr 16, 2005, 6:24 AM
Post Re: [ccunet] Fed-up with rewrite rules
loxly 2858 Apr 16, 2005, 10:14 AM