I did not know about the END flag. Also, very good point concerning the storage folder. I came up with this new ruleset:. Works great! But is a personal preference. I had big original images that were converted to webp, but timed out during the proces. I think the main problem is, that the plugin creates a new file with the file extension itself.
For example image. The plugin should create the new file without the jpg extension. I added a webp extension rule to exclude this case like so: see! The htaccess rule sees that and checks for the same filename witht he webp extension. If it exists, it serves it. Otherwise it will redirect the request to the webp. Thats working great and is not the problem : Requests like " What was happening was that, since InvalidLink. I added an ErrorDocument directive and created a page.
Now InvalidLink. Though in practice, a will never happen. If you had two conditions then the backreference refers to the last one that matched which isn't necessarily the last RewriteCond directive. It suggests that the ErrorDocument defined in the server config was misconfigured. A missing error document by itself wouldn't normally have caused this problem.
ErrorDocument default would also resolve it. Bit of a guess but that seems to fit. Glad you sorted it! Show 1 more comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 6 years, 5 months ago. Active 6 years, 5 months ago.
Viewed times. Improve this question. Tom Goetz Tom Goetz 23 4 4 bronze badges. In VirtualDocumentRoot it corresponds to the first part of the 'Host' name, and in RewriteCond or RewriteRule it represents backreferences to the preceding RewriteCond capturing groups.
See Apache doc for RewriteCond — Zimmi. Add a comment. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 2. Related 4. Hot Network Questions. Question feed.
0コメント