Skip to main content
Became Hot Network Question
Became Hot Network Question
Became Hot Network Question
Became Hot Network Question
Became Hot Network Question
highlighted the code
Source Link
Sumit Bhatia
  • 5.9k
  • 2
  • 9
  • 25

Replace Sitecore.MediaRequestHandlerSitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one:

`<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" /`>

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one:

`<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" /`>

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one:

`<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" /`>

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>
added 6 characters in body
Source Link

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one: <add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" />

`<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" /`>

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one: <add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" />

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one:

`<add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" /`>

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>
Source Link

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers

Replace Sitecore.MediaRequestHandler in web configuration with a patch file inside the handlers.

Existing one: <add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" />

custom handler:

<add verb="*" path="sitecore_media.ashx" type="example.example.example.Processors.CustomMediaRequestHandler, example.example.Redirects" name="Sitecore.MediaRequestHandler"/>