3 ms·
You shouldn't redirect for assets that dont exist, even if you do for pages...
by justincormack 15y ago
You shouldn't redirect for assets that dont exist, even if you do for pages...
- smokinn 15y agoYou're correct. The immediate fix was to just upload the font but the long-term fix was as you pointed out. At first we would only treat urls with certain file types (jpg, png, mp4, etc) as files when found on the server, the rest as pages and we switched from a whitelist of file types to anything that had an asset directory path in the url. Our original htaccess rules were definitely deficient. The idea was that we wanted tracking pixels and the like to be able to run code.
- adavies42 15y agoyou shouldn't redirect for pages either, 404s exist for a reason....
- smokinn 15y agoSigh, I know, but non-technical product managers can be very adamant about certain things. =(