score:8
I appreciate Ammar T.'s answer, but I just add some cherry to his answer. So if your binary file extension is something else, which is not available in the
</^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>
this, then just add that extension into it. i.e I was using a .jpeg file, so for me I had to modify it into
</^[^.]+$|.(?!(css|gif|ico|jpg|jpeg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>
this.
Thanks
score:14
Go to App Settings -> Redirects and Rewrites and change the
source address: </^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>
Type from 200 (Rewrite) to 404 (Rewrite)
Source: stackoverflow.com
Related Query
- React images load locally but not on AWS Amplify
- Can we use AWS amplify only for its react library (components) but not the backend cli?
- Trying to deploy react app on aws amplify but keep getting a "Base Directory not specified for artifacts, unable to create build artifact."
- React app load public images in live but not in localhost
- React router not allowing images to load
- React App not redirecting properly on AWS Amplify
- AWS Amplify & React - Module not found: Can't resolve '@aws-amplify/analytics'
- React router does not change view, but url is changed - App is load inside iframe
- React Router useHistory. History.push changes url but does not load component
- React & AWS Amplify - User does not have delivery config set to turn on SMS_MFA
- Webpack working locally but not on AWS Server
- Trying to retrieve an mp3 file stored in AWS S3 and load it into my React client as a Blob...it's not working
- AuthError - Error: Amplify has not been configured correctly / AWS cognito, React JS
- React images not loading locally after gh-pages installation
- React App not showing locally imported images
- Redrawing or Reinitialising Windyapi in React Js but it is not load after I change the Route
- Why does my React app work locally but not on Azure?
- AWS Amplify HOC Authenticator React does not pass authState property to wrapped component
- ReactJS images not showing in azure app service, but do show locally
- Images not loading locally on React using Gatsby
- proxy is not working in deployed react project to github but works locally
- Not load images with webpack and react in SSR
- node serving react working locally but not on heroku
- '.filter is not a function' error message in React app when deployed to Heroku but not when running locally
- React Routes not working on Server but work locally
- React | Can“t load Images > Module not found
- React UseEffect works locally but not In production Netlify
- window.Calendly.initInlineWidget is not defined on first load but works after refresh with useEffect in React and Gatsby
- Content-Security-Policy will not load images from external sources in React
- React history.push is updating url but is not unable to load the desired component
More Query from same tag
- React js app - setting functional component's state with a returned value from function in class component (error: undefined)
- Axios return Cannot GET /[object%20Object] when calling axios.get()
- How to count object's number in array?
- How to stock new div and keep previous value in react?
- Mobx Store shows lag in nested input range. Causes slow performance
- Apollo client useQuery is skipping but not re-running the query when the skip flag becomes false?
- How to prevent inline functions from binding to old state values
- How to validate material-ui-phone-number with Yup
- How to send data to database with user account from Firebase?
- ReactJS - detect when the vertical scroll appears
- React JS, Error is not defined no-undef when attempting to obtain first value from array
- Open a static HTML in React project
- NotFound component does not render in Router
- How to update React state once useMutation is done?
- Invalid hook call which I can't seem to fix
- Getting wrong year when tryting to convert unix seconds to a readable format
- What am I doing wrong that justify-content doesn't have the expected behavior?
- How can I use jQuery $(this) in react js function
- XMLHttpRequest GET not working in React.js
- Type 'string' is not assignable to type for react-router-dom Link Component
- In React, when will the componentDidMount fire for a component that does not directly render markup?
- What is the proper way to make api calls and get the author information of each post by id?
- How to navigate to an external URL?
- Cleaner way to return an object from within a list
- How to get values from react FieldArray in formik form with other fields?
- Unable to display API data on React.js
- How to add facebook comment plugin in Gatsby?
- How can I set some css to a react NumPad component?
- How do I import a jquery plugin into my React component? turnjs
- How to use useSelector on page refresh