Score:0

Redirect existing file url to url

sa flag

I have existing file with url: https://example.com/sites/default/files/public_files/pages/example%20documents/document.pdf

and I want to redirect it to: https://example.com/en/new-url

I did not find the modul that could do this (and AFAIK Drupal is not even fiering when public file is accessed directly) and I tried with adding .htaccess rule in docroot.

RedirectMatch 307 sites/default/files/public_files/pages/example%20documents/document.pdf https://example.com/en/new-url

It did not work when I put it in .htaccess on line 64, 183 and some others positions.

Any ideas how this can be solved are appreciated :) tnx

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.