Redirect to custom page if file doesn’t exist
-
Let’s say someone requested media which in uploads folder (somewebsite.com/wp-content/uploads/filenotexist.jpg) and that doesn’t exist. Now since file doesn’t exist it redirects to Error 404 page. I want it to redirect to my custom page saying “MEDIA DOESN’T EXIST”.
How I do so? It should only appear if requested media is assumed to be in uploads folder.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Redirect to custom page if file doesn’t exist’ is closed to new replies.