-
Notifications
You must be signed in to change notification settings - Fork 6
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
Can you explain in details pushing to live server? #3
Comments
I managed to get it working by refreshing everything, clearing the cache, and changing the live server htaccess file to force https and www
|
Sounds like this issue can be closed, then, since it was a config issue on your production server? |
In your first posted configuration, the line started with: "RewriteRule" are misconfigurations, and adding them to your system will not change any system behavior. "RewriteEngine" has to be explicitly set to on, then "RewriteRule" will be used in Apache. Related Apache source code snippet:
|
I think this is a misconfiguration. User cannot have the same understanding as Apache developers. (which is more than okay) The only way to fix the misconfiguration is to hack the Apache source code. This is not feasible and 100% not ideal for users. |
So this plugin seems awesome and exactly what I need it for. It works perfectly in my local build. But as soon as I push everything to the server. My CSS and JS breaks and I get 404s on the files. I tried adding the stuff in the .htaccess but no luck - still gives me 404 errors on those versioned files and also gives me 404 errors on other files that don't even use craft.stamp.er.
HTML
<link rel="stylesheet" href="{{ craft.stamp.er('/assets/css/style.css') }}">
OUTPUT
<link rel="stylesheet" href="/assets/css/style.1559499637.css">
OPEN STYLESHEET IN NEW TAB
Error 404 page
HTACCESS
The text was updated successfully, but these errors were encountered: