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
Quote Reply
Re: [rgbworld] Fed-up with rewrite rules In reply to
Hi,

Shoot over FTP/LSQL access, and I'll take a look for you (later today, or probably tomorrow). There's an art to it on some servers, as not all the paths are as they seem :(

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!
Quote Reply
Re: [rgbworld] Fed-up with rewrite rules In reply to
In Reply To:
Do I need to implement pugdogs setup with an EMPTY "links" directory? view post

That's what I had to do to make my LSQL 2.21 work with rewrite. I also placed the rewrite htaccess in that directory.

CCUnet
my Christian web
Quote Reply
Re: [ccunet] Fed-up with rewrite rules In reply to
Did you copy the static directory to the new build directory?