Any suggestion on how to redirect old image styles?


404 redirect

With moving to a new Drupal 9 site if an old image style (from D7 site) from a search engine indexed gets referenced on the new site I get "403 Error." message.

As there are many image styles I am not quite sure what the best approach would be. Thanks for your inputs.

  • That is not the URL of an image. Can you please fix up this question so it is answerable? As such we are missing information.
    – cilefen
    Jun 16 at 18:24
  • Updated the path minus domain name above. If you need to see other info please clarify. The above are old image styles and show up in Redirect modules "Fix 404" errors.
    – Thomas
    Jun 16 at 20:30
  • That still isn't an image path. I don't even know what that path with a query string would be for minus a file at the end of it. And although you are asking about redirects, there is no information about the paths on the new site. So, sorry, no answers may be given.
    – cilefen
    Jun 16 at 21:52
  • I do appreciate your comments and that lead me to look at a couple of things. Added a pic and got a bit farther. If I disable "Suppress 'page not found' log messages" in Redirect 404 module I can see the actual image path in "Recent log messages". The path is "/sites/default/files/styles/large/public/field/articles/abc1.jpg?itok=KK5Gislq" and Google is the referrer. Certain content types I could do a manual redirect, as there are not may images, but others there a lots.
    – Thomas
    Jun 16 at 23:11


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.