Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site breaks #66

Open
hprata opened this issue Aug 30, 2017 · 4 comments
Open

Site breaks #66

hprata opened this issue Aug 30, 2017 · 4 comments
Labels

Comments

@hprata
Copy link

hprata commented Aug 30, 2017

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]

@tractorcow
Copy link
Owner

tractorcow commented Sep 1, 2017

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 tractorcow added the bug label Sep 1, 2017
@jonom
Copy link
Contributor

jonom commented Sep 11, 2017

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?

@tractorcow
Copy link
Owner

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

@dhensby
Copy link
Contributor

dhensby commented Jul 19, 2018

seems out of date, worth closing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants