-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error 404 after plugin's .htaccess modification #74
Comments
Any help?? |
What version of Apache are you using? The plugin does generate code that works in most cases, but depending on your server setup it is possible that the generated htaccess rules are not compatible. In this case you'll have to debug this on your own as I don't know the details of your setup. These two blocks are relevant:
You can also add a debug statement like |
Apache 2.0 is very old (the last update was released 7 years ago). I don't think it supports all the added rewrite flags (for example You either have to rewrite the rule to work with Apache 2.0 or look for a web host that is a bit more up-to-date with its software! |
My apologize, the Apache version is 2.4.41. It's up-to-date By the way, on localhost with XAMPP server running the plug-in is ignored at all. |
After googling around a bit, it looks like this is some non-standard PHP configuration. If you search for |
I had a conversation with hosting support. Also, they have pointed that after removing temporary the UPDATE |
Within On Windows XAMPP localhost the |
Making further investigations with all default
I came to these problems: 1). enter any jpeg url in borwser, 2). after:
insert
As result I'm getting empty path!
It's on XAMPP local server. All required libraries are enabled. The same situation is on a shared hosting |
The I guess the problem here is that you are running under Windows and therefore have This line, for example, does not handle Try and see if changing the replacement string to |
Thank you! |
The webp library we're using is returning some debug headers for each file. If you request a file in the browser that should be converted to webp, look at the file's response headers. There are also other debugging features you can enable by editing our |
Yes, the server is sending the webp image for a requested jpeg file. This is why the file extension and type no longer match. There is no way around this without explicitly linking the webp image in your markup (but that would defeat the purpose of this plugin). Also, your browser does not care about the file extension, all that matters is the Content-Type response header. |
Great, thank you! |
Hello!
After installation plugin modifies the
.htaccess
files. After it all images are unavailable, the 404 is thrown.Removing one line
RewriteRule ^/?(.*)$ plugins/offline/responsiveimages/webp.php?path=$1 [NC,END]
makes everything working, except plugin.How should the
.htaccess
properly looks like?Thank you!
Here is mine with modifications once plug-in is installed, they are appended above:
UPDATE
Here is a link to a live example https://www.filmustudija.lt/
Is seems that only a few images are working from non homepage.
At the home page the "hero" doesn't generate images, the
No input file specified.
error is specified if I try to access the images directly.system.log
is empty. And that's with other pages too. Once I clear the.htaccess
- images start displaying.If it make sense, the URL in
app.php
is seto to'url' => 'https://filmustudija',
After checking all repo, I've revised
.htaccess
to this, but it still not working:The text was updated successfully, but these errors were encountered: