silverstripe-dynamiccache icon indicating copy to clipboard operation
silverstripe-dynamiccache copied to clipboard

Site breaks

Open hprata opened this issue 8 years ago • 4 comments
trafficstars

all links break. CSS and JS requirements do Not load Site loads home page but without requirements and nothing else can be accessed. Not even /dev/* Did not parse stylesheet at '*****/font-awesome.min.css?m=1478192886' because non CSS MIME types are not allowed in strict mode.

the rewrite rule seems to not work RewriteRule .* dynamiccache/cache-main.php?url=%1&%{QUERY_STRING} [L]

hprata avatar Aug 30 '17 15:08 hprata

Please try this and tell me if it gets your further. :)

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* dynamiccache/cache-main.php?url=%1 [QSA]

tractorcow avatar Sep 01 '17 01:09 tractorcow

I've just tried this locally, CSS and JS load fine for me with either variant of the RewriteRule and are delivered with appropriate MIME types. @tractorcow just curious - what's different about the revised version? @hprata did the revised version fix the issue for you?

jonom avatar Sep 11 '17 23:09 jonom

Well, one has the additional 2 x RewriteCond, and I'm not sure if @hprata's one does.

tractorcow avatar Sep 12 '17 01:09 tractorcow

seems out of date, worth closing?

dhensby avatar Jul 19 '18 22:07 dhensby