If there is an error in the upload process and one of the files doesn't get created, say "/images/product_201_large.jpg", I'd like Apache to replace that file with this file: "/images/missing_0_large.jpg". And in the case of the smaller image, I want it to be replaced with: "/images/missing_0_small.jpg".
I'm not sure how to do conditional RedirectMatch using HT access and a wildcard. Could someone guide me? Here are the rules that I've tried to experiment with but none of them worked:
yeah it seems to be Edge only. The dialog buttons work as expected in Chrome and Firefox. The phone is using Android 16 (OneUI 8.5) and Edge version 149.0.4022.53
I'm not aware of this issue, but to help the other guys.
What version of Android are you using?
Did you try a different browser? To see if Edge is the issue here.
I agree when are you going to read this (really poor BTW) article?
Here is a better article so you actually know what is going on and answers questions you had in other comments --> https://arstechnica.com/gadgets/2026/05/speed-boosting-low-latency-profile-is-one-of-the-improvements-coming-to-windows-11/
It is unclear if one will be able to disable the new profile at this point but I am not seeing any reason why one would.
I disagree; they come off very "bitchy" and "whiny".
Make a great product and combine that with a great price (free) and people will come over to your side. Or build it and they will come as they say.
Constantly trying to get attention by complaining all the time, will turn people off to your product.
Question
Brian Miller
I have a folder full of product images. And the image file name is something akin to:
/images/product_15_small.jpg /images/product_15_large.jpg /images/product_201_small.jpg /images/product_201_large.jpg /images/product_47502_small.jpg /images/product_47502_large.jpgIf there is an error in the upload process and one of the files doesn't get created, say "/images/product_201_large.jpg", I'd like Apache to replace that file with this file: "/images/missing_0_large.jpg". And in the case of the smaller image, I want it to be replaced with: "/images/missing_0_small.jpg".
I'm not sure how to do conditional RedirectMatch using HT access and a wildcard. Could someone guide me? Here are the rules that I've tried to experiment with but none of them worked:
#TEST 1: RedirectMatch 404 ^images/product_(\d+)_small.jpg images/missing_(\d+)_small.jpg RedirectMatch 404 ^images/product_(\d+)_large.jpg images/missing_(\d+)_large.jpg #TEST 2: RewriteRule ^images/product_(\d+)_small.jpg images/missing_(\d+)_small.jpg [L] RewriteRule ^images/product_(\d+)_large.jpg images/missing_(\d+)_large.jpg [L]From the example above, "TEST 1" doesn't work however it seems to be the most logical format.
"TEST 2" does work, but it always redirects, and I want it to only redirect when the target file is missing (during a 404).
Please can an Apache expert help me?
Link to comment
https://www.neowin.net/forum/topic/1405828-htaccess-for-missing-images-with-wildcards/Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now